Skip to content

Commit

Permalink
Fix display
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Nov 2, 2019
1 parent b19e4d6 commit fc46b30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jupytext/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def compare(actual, expected, return_diff=False):
diff = '\n'.join(difflib.unified_diff(
_multilines(expected),
_multilines(actual),
'actual', 'expected', lineterm=''))
'expected', 'actual', lineterm=''))
if return_diff:
return diff
raise AssertionError('\n' + diff)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def test_compare_on_notebooks(notebook_actual, notebook_expected):
compare(notebook_actual, notebook_expected)

assert str(err.value) == """
--- actual
+++ expected
--- expected
+++ actual
@@ -15,7 +15,7 @@
{
"cell_type": "markdown",
Expand Down

0 comments on commit fc46b30

Please sign in to comment.