mirror of https://github.com/python/cpython
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:
parent
3b19754079
commit
6b4ed74791
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue