summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-03-01 06:10:48 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-03-01 06:10:48 (GMT)
commit6b4ed747915ed3f6baab4d93b0f28e60b2911d02 (patch)
treee40391d616a224d8ef1c885bcf00531c4d84cae2
parent3b1975407945f2f1f2d90e3611417da91808b420 (diff)
downloadcpython-6b4ed747915ed3f6baab4d93b0f28e60b2911d02.zip
cpython-6b4ed747915ed3f6baab4d93b0f28e60b2911d02.tar.gz
cpython-6b4ed747915ed3f6baab4d93b0f28e60b2911d02.tar.bz2
Fix parsing of exception_hierarchy.txt when a platform-specific exception is
specified. Hopefully this wll bring warming to Tim's Windows-loving heart.
-rw-r--r--Lib/test/test_pep352.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pep352.py b/Lib/test/test_pep352.py
index 234d671..251e0be 100644
--- a/Lib/test/test_pep352.py
+++ b/Lib/test/test_pep352.py
@@ -42,6 +42,7 @@ class ExceptionClassTests(unittest.TestCase):
if '(' in exc_name:
paren_index = exc_name.index('(')
platform_name = exc_name[paren_index+1:-1]
+ exc_name = exc_name[:paren_index-1] # Slice off space
if platform_system() != platform_name:
exc_set.discard(exc_name)
continue