[Python-checkins] r42723 - python/trunk/Lib/test/test_pep352.py

brett.cannon python-checkins at python.org
Wed Mar 1 07:10:50 CET 2006


Author: brett.cannon
Date: Wed Mar  1 07:10:48 2006
New Revision: 42723

Modified:
   python/trunk/Lib/test/test_pep352.py
Log:
Fix parsing of exception_hierarchy.txt when a platform-specific exception is
specified.  Hopefully this wll bring warming to Tim's Windows-loving heart.


Modified: python/trunk/Lib/test/test_pep352.py
==============================================================================
--- python/trunk/Lib/test/test_pep352.py	(original)
+++ python/trunk/Lib/test/test_pep352.py	Wed Mar  1 07:10:48 2006
@@ -42,6 +42,7 @@
                 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


More information about the Python-checkins mailing list