Author: Romain Guillebert <romain...@gmail.com> Branch: py3k Changeset: r51340:851536b685a6 Date: 2012-01-16 14:24 +0100 http://bitbucket.org/pypy/pypy/changeset/851536b685a6/
Log: Parsing 0777 should fail on py3k 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 @@ -144,7 +144,6 @@ py.test.raises(SyntaxError, self.parse, "b'a\\n") def test_new_octal_literal(self): - self.parse('0777') self.parse('0o777') py.test.raises(SyntaxError, self.parse, '0o777L') py.test.raises(SyntaxError, self.parse, "0o778") @@ -154,5 +153,8 @@ py.test.raises(SyntaxError, self.parse, '0b0l') py.test.raises(SyntaxError, self.parse, "0b112") + def test_py3k_reject_old_binary_literal(self): + py.test.raises(SyntaxError, self.parse, '0777') + def test_py3k_extended_unpacking(self): self.parse('(a, *rest, b) = 1, 2, 3, 4, 5') _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit