Commits

Antonio Cuni committed bfb218d

exception variables are cleared as soon as we exit the except: block now, so we must explicitly save the values

Comments (0)

Files changed (1)

pypy/interpreter/test/test_compiler.py

         source2 = "x = (\n\n"
         try:
             exec(source1)
-        except SyntaxError as err1:
-            pass
+        except SyntaxError as e:
+            err1 = e
         else:
             raise Exception("DID NOT RAISE")
         try:
             exec(source2)
-        except SyntaxError as err2:
-            pass
+        except SyntaxError as e:
+            err2 = e
         else:
             raise Exception("DID NOT RAISE")
         assert str(err1) != str(err2)