mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +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
|
|
@ -750,7 +750,7 @@ class GCTests(unittest.TestCase):
|
|||
a.link = a
|
||||
raise SystemExit(0)"""
|
||||
self.addCleanup(unlink, TESTFN)
|
||||
with open(TESTFN, 'w') as script:
|
||||
with open(TESTFN, 'w', encoding="utf-8") as script:
|
||||
script.write(code)
|
||||
rc, out, err = assert_python_ok(TESTFN)
|
||||
self.assertEqual(out.strip(), b'__del__ called')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue