From 929912de2920fdf82a2b5303e9585803368234cd Mon Sep 17 00:00:00 2001 From: Manuel Krebber Date: Tue, 29 Nov 2016 14:51:17 +0100 Subject: [PATCH] Changed the tests to pass on python 2 as well. --- testing/test_doctest.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testing/test_doctest.py b/testing/test_doctest.py index 4ecd5744b62..d48e5804210 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -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") @@ -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()