From: Serhiy Storchaka Date: Fri, 19 Jun 2020 21:06:07 +0000 (+0300) Subject: bpo-41040: Fix test_modulefinder. (GH-20991) X-Git-Tag: v3.10.0a1~578 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a041e116db5f1e78222cbf2c22aae96457372680;p=thirdparty%2FPython%2Fcpython.git bpo-41040: Fix test_modulefinder. (GH-20991) --- diff --git a/Lib/test/test_modulefinder.py b/Lib/test/test_modulefinder.py index 23c7e5fb0f56..ca1058b8d408 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)