Author: Romain Guillebert <[email protected]>
Branch: py3k
Changeset: r51339:34ff01570492
Date: 2012-01-16 14:17 +0100
http://bitbucket.org/pypy/pypy/changeset/34ff01570492/
Log: Rename the test commited earlier, rewrite tests that should pass.
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
@@ -146,13 +146,13 @@
def test_new_octal_literal(self):
self.parse('0777')
self.parse('0o777')
- self.parse('0o777L')
+ py.test.raises(SyntaxError, self.parse, '0o777L')
py.test.raises(SyntaxError, self.parse, "0o778")
def test_new_binary_literal(self):
self.parse('0b1101')
- self.parse('0b0l')
+ py.test.raises(SyntaxError, self.parse, '0b0l')
py.test.raises(SyntaxError, self.parse, "0b112")
- def test_new_extended_unpacking(self):
+ def test_py3k_extended_unpacking(self):
self.parse('(a, *rest, b) = 1, 2, 3, 4, 5')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit