Commit 92a828dc authored by Vincent Pelletier's avatar Vincent Pelletier

Use python3-friendly syntax.

parent df26478f
...@@ -387,7 +387,7 @@ class StorageDBTests(NeoUnitTestBase): ...@@ -387,7 +387,7 @@ class StorageDBTests(NeoUnitTestBase):
def check(offset, tid_list, *tids): def check(offset, tid_list, *tids):
self.assertEqual(self.db.getReplicationTIDList(ZERO_TID, self.assertEqual(self.db.getReplicationTIDList(ZERO_TID,
MAX_TID, len(tid_list) + 1, offset), tid_list) MAX_TID, len(tid_list) + 1, offset), tid_list)
expected = [(t, oid_list[offset+i]) for t in tids for i in 0, np] expected = [(t, oid_list[offset+i]) for t in tids for i in (0, np)]
self.assertEqual(self.db.getReplicationObjectList(ZERO_TID, self.assertEqual(self.db.getReplicationObjectList(ZERO_TID,
MAX_TID, len(expected) + 1, offset, ZERO_OID), expected) MAX_TID, len(expected) + 1, offset, ZERO_OID), expected)
self.db._deleteRange(0, MAX_TID) self.db._deleteRange(0, MAX_TID)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment