[pypy-commit] pypy py3.6: fix raises

cfbolz pypy.commits at gmail.com
Sat May 26 08:12:08 EDT 2018


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6
Changeset: r94685:a26f84e38118
Date: 2018-05-21 14:13 +0200
http://bitbucket.org/pypy/pypy/changeset/a26f84e38118/

Log:	fix raises

diff --git a/pypy/interpreter/pyparser/test/test_pyparse.py b/pypy/interpreter/pyparser/test/test_pyparse.py
--- a/pypy/interpreter/pyparser/test/test_pyparse.py
+++ b/pypy/interpreter/pyparser/test/test_pyparse.py
@@ -274,7 +274,7 @@
             tree = self.parse(x)
         for x in INVALID_UNDERSCORE_LITERALS:
             print x
-            raises(SyntaxError, self.parse, "x = %s" % x)
+            py.test.raises(SyntaxError, self.parse, "x = %s" % x)
 
 
 class TestPythonParserWithSpace:


More information about the pypy-commit mailing list