Kaydet (Commit) 6b4ed747 authored tarafından Brett Cannon's avatar Brett Cannon

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

specified.  Hopefully this wll bring warming to Tim's Windows-loving heart.
üst 3b197540
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment