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-25189)
* Fix _sitebuiltins * Fix test_inspect * Fix test_interpreters * Fix test_io * Fix test_iter * Fix test_json * Fix test_linecache * Fix test_lltrace * Fix test_logging * Fix logging
This commit is contained in:
parent
f84d5a1136
commit
fb78692f2a
11 changed files with 73 additions and 63 deletions
|
@ -13,7 +13,7 @@ class TestLLTrace(unittest.TestCase):
|
|||
# bpo-34113. The crash happened at the command line console of
|
||||
# debug Python builds with __ltrace__ enabled (only possible in console),
|
||||
# when the interal Python stack was negatively adjusted
|
||||
with open(os_helper.TESTFN, 'w') as fd:
|
||||
with open(os_helper.TESTFN, 'w', encoding='utf-8') as fd:
|
||||
self.addCleanup(os_helper.unlink, os_helper.TESTFN)
|
||||
fd.write(textwrap.dedent("""\
|
||||
import code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue