comparison tests/test_push.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
15 15
16 self.append('a', 'a') 16 self.append('a', 'a')
17 self.client.commit(b('second')) 17 self.client.commit(b('second'))
18 18
19 self.assertTrue(self.client.push(b('other'))) 19 self.assertTrue(self.client.push(b('other')))
20 self.assertEquals(self.client.log(), other.log()) 20 self.assertEqual(self.client.log(), other.log())