summaryrefslogtreecommitdiff
path: root/Lib/test/test_bool.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-04-02 12:53:46 +0900
committerGitHub <noreply@github.com>2021-04-02 12:53:46 +0900
commit8bbfeb3330c10d52274bb85fce59ae614f0500bf (patch)
treee599878998ff1f8b1cf61bce14ff2a2037871a87 /Lib/test/test_bool.py
parentbef7b26f7229f8b7cde843118a7bc7e2b00f0372 (diff)
downloadcpython-git-8bbfeb3330c10d52274bb85fce59ae614f0500bf.tar.gz
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142)
* test__xxsubinterpreters * test_builtin * test_doctest * test_exceptions * test_opcodes * test_support * test_argparse * test_baseexception * test_bdb * test_bool * test_asdl_parser
Diffstat (limited to 'Lib/test/test_bool.py')
-rw-r--r--Lib/test/test_bool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py
index bec44d0b9c..a3214c90ed 100644
--- a/Lib/test/test_bool.py
+++ b/Lib/test/test_bool.py
@@ -235,7 +235,7 @@ class BoolTest(unittest.TestCase):
def test_fileclosed(self):
try:
- with open(os_helper.TESTFN, "w") as f:
+ with open(os_helper.TESTFN, "w", encoding="utf-8") as f:
self.assertIs(f.closed, False)
self.assertIs(f.closed, True)
finally: