[Python-checkins] bpo-41040: Fix test_modulefinder. (GH-20991)

Miss Islington (bot) webhook-mailer at python.org
Fri Jun 19 17:25:33 EDT 2020


https://github.com/python/cpython/commit/80651ab9e3f9d9a89e566a0b87a51b28720094f0
commit: 80651ab9e3f9d9a89e566a0b87a51b28720094f0
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-06-19T14:25:25-07:00
summary:

bpo-41040: Fix test_modulefinder. (GH-20991)

(cherry picked from commit a041e116db5f1e78222cbf2c22aae96457372680)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
M Lib/test/test_modulefinder.py

diff --git a/Lib/test/test_modulefinder.py b/Lib/test/test_modulefinder.py
index 23c7e5fb0f563..ca1058b8d4087 100644
--- a/Lib/test/test_modulefinder.py
+++ b/Lib/test/test_modulefinder.py
@@ -284,10 +284,11 @@ def foo(): pass
                                 # 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)



More information about the Python-checkins mailing list