From 6b4ed747915ed3f6baab4d93b0f28e60b2911d02 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 1 Mar 2006 06:10:48 +0000 Subject: Fix parsing of exception_hierarchy.txt when a platform-specific exception is specified. Hopefully this wll bring warming to Tim's Windows-loving heart. --- Lib/test/test_pep352.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12