Author: Stefan Beyer <h...@sbeyer.at> Branch: fix-global Changeset: r90434:2e54fda87e45 Date: 2017-02-28 18:14 +0100 http://bitbucket.org/pypy/pypy/changeset/2e54fda87e45/
Log: Fixed bug translating SyntaxWarning to SyntaxError Tests in lib- python/3/test/test_global.py are now sucessful diff --git a/pypy/interpreter/astcompiler/misc.py b/pypy/interpreter/astcompiler/misc.py --- a/pypy/interpreter/astcompiler/misc.py +++ b/pypy/interpreter/astcompiler/misc.py @@ -9,7 +9,7 @@ try: warnings.warn_explicit(msg, SyntaxWarning, fn, lineno) except SyntaxWarning: - raise SyntaxError(msg, fn, lineno, offset) + raise SyntaxError(msg, (fn, lineno, offset, msg)) """, filename=__file__) _emit_syntax_warning = app.interphook("syntax_warning") del app _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit