Skip to content

Commit

Permalink
bpo-41040: Fix test_modulefinder. (GH-20991)
Browse files Browse the repository at this point in the history
(cherry picked from commit a041e11)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
miss-islington and serhiy-storchaka committed Jun 19, 2020
1 parent ec9bc2d commit 80651ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_modulefinder.py
Expand Up @@ -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)
Expand Down

0 comments on commit 80651ab

Please sign in to comment.