comparison tests/test_manifest.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
20 (b('62452855512f5b81522aa3895892760bb8da9f3f'), 20 (b('62452855512f5b81522aa3895892760bb8da9f3f'),
21 b('644'), False, True, b('c'))]) 21 b('644'), False, True, b('c'))])
22 22
23 self.client.commit(b('first'), addremove=True) 23 self.client.commit(b('first'), addremove=True)
24 24
25 self.assertEquals(list(self.client.manifest(all=True)), files) 25 self.assertEqual(list(self.client.manifest(all=True)), files)
26 26
27 self.assertEquals(list(self.client.manifest()), manifest) 27 self.assertEqual(list(self.client.manifest()), manifest)