Author: Armin Rigo <ar...@tunes.org>
Branch: reverse-debugger-updated
Changeset: r94566:3c84fc6a2df5
Date: 2018-05-14 13:00 +0200
http://bitbucket.org/pypy/pypy/changeset/3c84fc6a2df5/

Log:    Fix test

diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py 
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -956,12 +956,16 @@
     def test_revdb_metavar(self):
         from pypy.interpreter.reverse_debugging import dbstate, setup_revdb
         self.space.config.translation.reverse_debugger = True
-        setup_revdb(self.space)
-        dbstate.standard_code = False
-        dbstate.metavars = [self.space.wrap(6)]
-        self.simple_test("x = 7*$0", "x", 42)
-        dbstate.standard_code = True
-        self.error_test("x = 7*$0", SyntaxError)
+        self.space.reverse_debugging = True
+        try:
+            setup_revdb(self.space)
+            dbstate.standard_code = False
+            dbstate.metavars = [self.space.wrap(6)]
+            self.simple_test("x = 7*$0", "x", 42)
+            dbstate.standard_code = True
+            self.error_test("x = 7*$0", SyntaxError)
+        finally:
+            self.space.reverse_debugging = False
 
 
 class AppTestCompiler:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to