Index: Lib/test/test_exceptions.py =================================================================== --- Lib/test/test_exceptions.py (revision 62126) +++ Lib/test/test_exceptions.py (working copy) @@ -334,6 +334,19 @@ except ValueError: return -1 self.assertRaises(RuntimeError, g) + def h(): + import sys + def i(): + try: + return i() + except: + return -1 + print i() + try: + import sys + except RuntimeError: + self.fail("Unexpected exception") + h() def testUnicodeStrUsage(self): # Make sure both instances and classes have a str and unicode