Browse Source

Fix python3 compatibility.

Jelmer Vernooij 8 years ago
parent
commit
38aca2675f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dulwich/tests/test_porcelain.py

+ 2 - 2
dulwich/tests/test_porcelain.py

@@ -230,14 +230,14 @@ class AddTests(PorcelainTestCase):
         with open(os.path.join(self.repo.path, 'foo'), 'w') as f:
             f.write("BAR")
         porcelain.add(self.repo.path, paths=["foo"])
-        self.assertIn("foo", self.repo.open_index())
+        self.assertIn(b"foo", self.repo.open_index())
 
     def test_add_file_absolute_path(self):
         # Absolute paths are (not yet) supported
         with open(os.path.join(self.repo.path, 'foo'), 'w') as f:
             f.write("BAR")
         porcelain.add(self.repo, paths=[os.path.join(self.repo.path, "foo")])
-        self.assertIn("foo", self.repo.open_index())
+        self.assertIn(b"foo", self.repo.open_index())
 
 
 class RemoveTests(PorcelainTestCase):