Browse Source

test_porcelain: fix test that is flaky with hash randomization enabled

Change-Id: I297971a9b686374c5ed0c114703d923cb4e685ea
Augie Fackler 11 years ago
parent
commit
5d2a4b7796
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/tests/test_porcelain.py

+ 1 - 1
dulwich/tests/test_porcelain.py

@@ -202,7 +202,7 @@ class AddTests(PorcelainTestCase):
 
         # Check that foo was added and nothing in .git was modified
         index = self.repo.open_index()
-        self.assertEqual(list(index), ['blah', 'foo', 'adir/afile'])
+        self.assertEqual(sorted(index), ['adir/afile', 'blah', 'foo'])
 
     def test_add_file(self):
         with open(os.path.join(self.repo.path, 'foo'), 'w') as f: