Browse Source

Fix test on Python3.

Jelmer Vernooij 7 years ago
parent
commit
459777257a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      dulwich/tests/test_pack.py

+ 4 - 4
dulwich/tests/test_pack.py

@@ -535,13 +535,13 @@ class TestThinPack(PackTests):
     def test_get_raw_unresolved(self):
     def test_get_raw_unresolved(self):
         with self.make_pack(False) as p:
         with self.make_pack(False) as p:
             self.assertEqual(
             self.assertEqual(
-                (7, '\x19\x10(\x15f=#\xf8\xb7ZG\xe7\xa0\x19e\xdc\xdc\x96F\x8c',
-                    ['x\x9ccf\x9f\xc0\xccbhdl\x02\x00\x06f\x01l']),
+                (7, b'\x19\x10(\x15f=#\xf8\xb7ZG\xe7\xa0\x19e\xdc\xdc\x96F\x8c',
+                    [b'x\x9ccf\x9f\xc0\xccbhdl\x02\x00\x06f\x01l']),
                 p.get_raw_unresolved(self.blobs[b'foo1234'].id))
                 p.get_raw_unresolved(self.blobs[b'foo1234'].id))
         with self.make_pack(True) as p:
         with self.make_pack(True) as p:
             self.assertEqual(
             self.assertEqual(
-                (7, '\x19\x10(\x15f=#\xf8\xb7ZG\xe7\xa0\x19e\xdc\xdc\x96F\x8c',
-                    ['x\x9ccf\x9f\xc0\xccbhdl\x02\x00\x06f\x01l']),
+                (7, b'\x19\x10(\x15f=#\xf8\xb7ZG\xe7\xa0\x19e\xdc\xdc\x96F\x8c',
+                    [b'x\x9ccf\x9f\xc0\xccbhdl\x02\x00\x06f\x01l']),
                 p.get_raw_unresolved(self.blobs[b'foo1234'].id))
                 p.get_raw_unresolved(self.blobs[b'foo1234'].id))
 
 
     def test_iterobjects(self):
     def test_iterobjects(self):