Changed the tests to pass on python 2 as well.
This commit is contained in:
parent
d254c6b0ae
commit
929912de29
|
@ -146,9 +146,9 @@ class TestDoctests:
|
||||||
def test_encoding_latin1(self, testdir):
|
def test_encoding_latin1(self, testdir):
|
||||||
"""Test support for --doctest-encoding option.
|
"""Test support for --doctest-encoding option.
|
||||||
"""
|
"""
|
||||||
testdir._makefile(".txt", ["""
|
testdir._makefile(".txt", [u"""
|
||||||
>>> 'üäö'
|
>>> len(u'üäö')
|
||||||
'üäö'
|
3
|
||||||
"""], {}, encoding='latin1')
|
"""], {}, encoding='latin1')
|
||||||
|
|
||||||
result = testdir.runpytest("--doctest-encoding=latin1")
|
result = testdir.runpytest("--doctest-encoding=latin1")
|
||||||
|
@ -160,9 +160,9 @@ class TestDoctests:
|
||||||
def test_encoding_utf8(self, testdir):
|
def test_encoding_utf8(self, testdir):
|
||||||
"""Test support for --doctest-encoding option.
|
"""Test support for --doctest-encoding option.
|
||||||
"""
|
"""
|
||||||
testdir.maketxtfile("""
|
testdir.maketxtfile(u"""
|
||||||
>>> 'üäö'
|
>>> len(u'üäö')
|
||||||
'üäö'
|
3
|
||||||
""")
|
""")
|
||||||
|
|
||||||
result = testdir.runpytest()
|
result = testdir.runpytest()
|
||||||
|
|
Loading…
Reference in New Issue