Skip to content

Commit b85fbd4

Browse files
author
brett.cannon
committed
Fix parsing of exception_hierarchy.txt when a platform-specific exception is
specified. Hopefully this wll bring warming to Tim's Windows-loving heart. git-svn-id: http://svn.python.org/projects/python/trunk@42723 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent a5802cb commit b85fbd4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_pep352.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_inheritance(self):
4242
if '(' in exc_name:
4343
paren_index = exc_name.index('(')
4444
platform_name = exc_name[paren_index+1:-1]
45+
exc_name = exc_name[:paren_index-1] # Slice off space
4546
if platform_system() != platform_name:
4647
exc_set.discard(exc_name)
4748
continue

0 commit comments

Comments
 (0)