Skip to content

Commit

Permalink
TEST: Use difflib rather than == to compare target and test scripts, …
Browse files Browse the repository at this point in the history
…giving more informative output
  • Loading branch information
Todd authored and Todd committed Mar 31, 2021
1 parent 27314fd commit 69798cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psychopy/tests/test_app/test_builder/test_Experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def test_xml(self):
# Compile again
test = exp.writeScript()
# Compare two scripts to make sure saving and loading hasn't changed anything
assert target == test
diff = difflib.unified_diff(target.splitlines(), test.splitlines())
assert list(diff) == []

def test_xsd(self):
# get files
Expand Down

0 comments on commit 69798cd

Please sign in to comment.