Skip to content

Commit f8b53aa

Browse files
drvinceknightmarcharper
authored andcommitted
Modify file comparison to not be shallow.
Hopefully this now works on windows.
1 parent da99c79 commit f8b53aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

axelrod/tests/unit/test_tournament.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,8 @@ def test_write_to_csv_with_results(self):
686686
repetitions=2)
687687
tournament.play(filename=self.filename, progress_bar=False)
688688
self.assertTrue(filecmp.cmp(self.filename,
689-
"test_outputs/expected_test_tournament.csv"))
689+
"test_outputs/expected_test_tournament.csv",
690+
shallow=False))
690691

691692
def test_write_to_csv_without_results(self):
692693
tournament = axelrod.Tournament(
@@ -698,7 +699,8 @@ def test_write_to_csv_without_results(self):
698699
tournament.play(filename=self.filename, progress_bar=False,
699700
build_results=False)
700701
self.assertTrue(filecmp.cmp(self.filename,
701-
"test_outputs/expected_test_tournament_no_results.csv"))
702+
"test_outputs/expected_test_tournament_no_results.csv",
703+
shallow=False))
702704

703705

704706
class TestProbEndTournament(unittest.TestCase):

0 commit comments

Comments
 (0)