aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-06-20 00:06:07 +0300
committerGitHub <noreply@github.com>2020-06-20 00:06:07 +0300
commita041e116db5f1e78222cbf2c22aae96457372680 (patch)
tree38e63dad93b92ee86c199a1bd98e0dded5ffd868 /Lib
parentbpo-40636: Documentation for zip-strict (#20961) (diff)
downloadcpython-a041e116db5f1e78222cbf2c22aae96457372680.tar.gz
cpython-a041e116db5f1e78222cbf2c22aae96457372680.tar.bz2
cpython-a041e116db5f1e78222cbf2c22aae96457372680.zip
bpo-41040: Fix test_modulefinder. (GH-20991)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_modulefinder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_modulefinder.py b/Lib/test/test_modulefinder.py
index 23c7e5fb0f5..ca1058b8d40 100644
--- a/Lib/test/test_modulefinder.py
+++ b/Lib/test/test_modulefinder.py
@@ -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)