Skip to content

Commit

Permalink
Changed the tests to pass on python 2 as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Krebber committed Nov 29, 2016
1 parent d254c6b commit 929912d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testing/test_doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def test_encoding_ascii(self, testdir):
def test_encoding_latin1(self, testdir):
"""Test support for --doctest-encoding option.
"""
testdir._makefile(".txt", ["""
>>> 'üäö'
'üäö'
testdir._makefile(".txt", [u"""
>>> len(u'üäö')
3
"""], {}, encoding='latin1')

result = testdir.runpytest("--doctest-encoding=latin1")
Expand All @@ -160,9 +160,9 @@ def test_encoding_latin1(self, testdir):
def test_encoding_utf8(self, testdir):
"""Test support for --doctest-encoding option.
"""
testdir.maketxtfile("""
>>> 'üäö'
'üäö'
testdir.maketxtfile(u"""
>>> len(u'üäö')
3
""")

result = testdir.runpytest()
Expand Down

0 comments on commit 929912d

Please sign in to comment.