]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41040: Fix test_modulefinder. (GH-20991)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 19 Jun 2020 21:06:07 +0000 (00:06 +0300)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 21:06:07 +0000 (00:06 +0300)
Lib/test/test_modulefinder.py

index 23c7e5fb0f5631c443f04189de7b5723a00d7870..ca1058b8d4087cf1e1de410a47808dcc7901dd1f 100644 (file)
@@ -284,10 +284,11 @@ a_cp1252.py
                                 # 0xe2 is not allowed in utf8
                                 print('CP1252 test P\xe2t\xe9')
                                 import b_utf8
+""" + """\
 b_utf8.py
                                 # use the default of utf8
                                 print('Unicode test A code point 2090 \u2090 that is not valid in cp1252')
-"""]
+""".encode('utf-8')]
 
 def open_file(path):
     dirname = os.path.dirname(path)