diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-04-04 08:01:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 08:01:10 (GMT) |
commit | 3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b (patch) | |
tree | 78737e7113e2b0a6fd07f20e7a7b751338293615 /Lib/test/test_fstring.py | |
parent | f8775e4f72240faba3947eea8efdd83ee56ae1fd (diff) | |
download | cpython-3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b.zip cpython-3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b.tar.gz cpython-3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b.tar.bz2 |
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25171)
* Fix test_float
* Fix _osx_support
* Fix test_fstring
* Fix test_gc
* Fix test_gzip
* Fix test_hashlib
* Fix unrelated whitespace issue
Co-authored-by: Ned Deily <nad@python.org>
Diffstat (limited to 'Lib/test/test_fstring.py')
-rw-r--r-- | Lib/test/test_fstring.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 79e123f..296cb05 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -1110,7 +1110,7 @@ x = ( # see issue 38964 with temp_cwd() as cwd: file_path = os.path.join(cwd, 't.py') - with open(file_path, 'w') as f: + with open(file_path, 'w', encoding="utf-8") as f: f.write('f"{a b}"') # This generates a SyntaxError _, _, stderr = assert_python_failure(file_path, PYTHONIOENCODING='ascii') |