aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_baseexception.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_baseexception.py')
-rw-r--r--Lib/test/test_baseexception.py5
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: