summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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