mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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>
This commit is contained in:
parent
f8775e4f72
commit
3caea9adda
6 changed files with 14 additions and 14 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue