We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d254c6b commit 929912dCopy full SHA for 929912d
1 file changed
testing/test_doctest.py
@@ -146,9 +146,9 @@ def test_encoding_ascii(self, testdir):
146
def test_encoding_latin1(self, testdir):
147
"""Test support for --doctest-encoding option.
148
"""
149
- testdir._makefile(".txt", ["""
150
- >>> 'üäö'
151
- 'üäö'
+ testdir._makefile(".txt", [u"""
+ >>> len(u'üäö')
+ 3
152
"""], {}, encoding='latin1')
153
154
result = testdir.runpytest("--doctest-encoding=latin1")
@@ -160,9 +160,9 @@ def test_encoding_latin1(self, testdir):
160
def test_encoding_utf8(self, testdir):
161
162
163
- testdir.maketxtfile("""
164
165
+ testdir.maketxtfile(u"""
166
""")
167
168
result = testdir.runpytest()
0 commit comments