Mercurial > python-hglib
comparison tests/test_pull.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 |
---|---|
12 | 12 |
13 self.append('a', 'a') | 13 self.append('a', 'a') |
14 self.client.commit(b('second')) | 14 self.client.commit(b('second')) |
15 | 15 |
16 self.assertTrue(other.pull()) | 16 self.assertTrue(other.pull()) |
17 self.assertEquals(self.client.log(), other.log()) | 17 self.assertEqual(self.client.log(), other.log()) |
18 | 18 |
19 def test_unresolved(self): | 19 def test_unresolved(self): |
20 self.append('a', 'a') | 20 self.append('a', 'a') |
21 self.client.commit(b('first'), addremove=True) | 21 self.client.commit(b('first'), addremove=True) |
22 | 22 |