diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-04-06 02:18:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 02:18:41 (GMT) |
commit | fb78692f2ad5ee4747f13a73943fbf134b637669 (patch) | |
tree | beb9f1abe584a74f281955ead6541cdeeeaa17a8 /Lib/test/test_lltrace.py | |
parent | f84d5a113680c5a6aaaf9130aed7a34d611748ff (diff) | |
download | cpython-fb78692f2ad5ee4747f13a73943fbf134b637669.zip cpython-fb78692f2ad5ee4747f13a73943fbf134b637669.tar.gz cpython-fb78692f2ad5ee4747f13a73943fbf134b637669.tar.bz2 |
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
Diffstat (limited to 'Lib/test/test_lltrace.py')
-rw-r--r-- | Lib/test/test_lltrace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_lltrace.py b/Lib/test/test_lltrace.py index 5f7d564..8f1a92e 100644 --- a/Lib/test/test_lltrace.py +++ b/Lib/test/test_lltrace.py @@ -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 |