diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-04-02 12:53:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 12:53:46 +0900 |
commit | 8bbfeb3330c10d52274bb85fce59ae614f0500bf (patch) | |
tree | e599878998ff1f8b1cf61bce14ff2a2037871a87 /Lib/test/test_baseexception.py | |
parent | bef7b26f7229f8b7cde843118a7bc7e2b00f0372 (diff) | |
download | cpython-8bbfeb3330c10d52274bb85fce59ae614f0500bf.tar.gz cpython-8bbfeb3330c10d52274bb85fce59ae614f0500bf.zip |
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_baseexception.py')
-rw-r--r-- | Lib/test/test_baseexception.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_baseexception.py b/Lib/test/test_baseexception.py index c32468269a7..8db497a1728 100644 --- a/Lib/test/test_baseexception.py +++ b/Lib/test/test_baseexception.py @@ -28,8 +28,9 @@ class ExceptionClassTests(unittest.TestCase): except TypeError: pass - inheritance_tree = open(os.path.join(os.path.split(__file__)[0], - 'exception_hierarchy.txt')) + inheritance_tree = open( + os.path.join(os.path.split(__file__)[0], 'exception_hierarchy.txt'), + encoding="utf-8") try: superclass_name = inheritance_tree.readline().rstrip() try: |