From: Brett Cannon Date: Wed, 1 Mar 2006 06:10:48 +0000 (+0000) Subject: Fix parsing of exception_hierarchy.txt when a platform-specific exception is X-Git-Tag: v2.5a0~442 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b4ed747915ed3f6baab4d93b0f28e60b2911d02;p=thirdparty%2FPython%2Fcpython.git Fix parsing of exception_hierarchy.txt when a platform-specific exception is specified. Hopefully this wll bring warming to Tim's Windows-loving heart. --- diff --git a/Lib/test/test_pep352.py b/Lib/test/test_pep352.py index 234d67116c35..251e0be0a8fb 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