summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_baseexception.py
diff options
context:
space:
mode:
authorJulien Palard <julien@palard.fr>2021-06-11 06:53:52 (GMT)
committerGitHub <noreply@github.com>2021-06-11 06:53:52 (GMT)
commitc4955e2c4f9abafd33bbe4904a82f7962333a7d6 (patch)
tree0e631d373c31d17a9509cf122d3eb86096a86550 /Lib/test/test_baseexception.py
parent62f1d2b3d7dda99598d053e10b785c463fdcf591 (diff)
downloadcpython-c4955e2c4f9abafd33bbe4904a82f7962333a7d6.zip
cpython-c4955e2c4f9abafd33bbe4904a82f7962333a7d6.tar.gz
cpython-c4955e2c4f9abafd33bbe4904a82f7962333a7d6.tar.bz2
Doc: Prettier exception hierarchy. (GH-26533)
Diffstat (limited to 'Lib/test/test_baseexception.py')
-rw-r--r--Lib/test/test_baseexception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_baseexception.py b/Lib/test/test_baseexception.py
index 8db497a..0061b3f 100644
--- a/Lib/test/test_baseexception.py
+++ b/Lib/test/test_baseexception.py
@@ -44,7 +44,7 @@ class ExceptionClassTests(unittest.TestCase):
last_depth = 0
for exc_line in inheritance_tree:
exc_line = exc_line.rstrip()
- depth = exc_line.rindex('-')
+ depth = exc_line.rindex('─')
exc_name = exc_line[depth+2:] # Slice past space
if '(' in exc_name:
paren_index = exc_name.index('(')