comparison tests/test_encoding.py @ 221:a2afbf236ca8

hglib tests: remove deprecated constructions This mostly removes usage of 'assertEquals' (replaced with 'assertEqual'), as well as opening files without closing them (fixed using a 'with' statement).
author Mathias De Mare <mathias.de_mare@nokia.com>
date Thu, 09 Mar 2023 14:00:02 +0100
parents 8341f2494b3f
children
comparison
equal deleted inserted replaced
220:ae6427d1c8f7 221:a2afbf236ca8
3 from hglib.util import b 3 from hglib.util import b
4 4
5 class test_encoding(common.basetest): 5 class test_encoding(common.basetest):
6 def test_basic(self): 6 def test_basic(self):
7 self.client = hglib.open(encoding='utf-8') 7 self.client = hglib.open(encoding='utf-8')
8 self.assertEquals(self.client.encoding, b('utf-8')) 8 self.assertEqual(self.client.encoding, b('utf-8'))