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

This commit is contained in:
Serhiy Storchaka 2020-06-20 00:06:07 +03:00 committed by GitHub
parent 59cf853332
commit a041e116db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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