Skip to content

Commit

Permalink
Specify keepends as positional rather than kwag in test.py because 2.…
Browse files Browse the repository at this point in the history
…6 is stupid.
  • Loading branch information
dan-blanchard committed Sep 20, 2015
1 parent 5b8ca5e commit 91058f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def check_file_encoding(file_name, encoding):
if result['encoding'].lower() != encoding:
wrapped_expected = '\n'.join(textwrap.wrap(expected_unicode, 100)) + '\n'
wrapped_detected = '\n'.join(textwrap.wrap(detected_unicode, 100)) + '\n'
diff = ''.join(ndiff(wrapped_expected.splitlines(keepends=True),
wrapped_detected.splitlines(keepends=True)))
diff = ''.join(ndiff(wrapped_expected.splitlines(True),
wrapped_detected.splitlines(True)))
else:
diff = ''
eq_(result['encoding'].lower(), encoding,
Expand Down

0 comments on commit 91058f0

Please sign in to comment.