Fix parsing of exception_hierarchy.txt when a platform-specific exception is

specified.  Hopefully this wll bring warming to Tim's Windows-loving heart.
This commit is contained in:
Brett Cannon 2006-03-01 06:10:48 +00:00
parent 3b19754079
commit 6b4ed74791
1 changed files with 1 additions and 0 deletions

View File

@ -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