summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_parser.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2003-01-29 14:20:23 (GMT)
committerMichael W. Hudson <mwh@python.net>2003-01-29 14:20:23 (GMT)
commit5e83b7a9cce3c619c98f929c8cd425058fc49139 (patch)
tree3a91a39963470c73b9b320ff25e8834c805cc6c4 /Lib/test/test_parser.py
parent090da4b626fe7cd4d642cc5e6e03041d97d80ffd (diff)
downloadcpython-5e83b7a9cce3c619c98f929c8cd425058fc49139.zip
cpython-5e83b7a9cce3c619c98f929c8cd425058fc49139.tar.gz
cpython-5e83b7a9cce3c619c98f929c8cd425058fc49139.tar.bz2
Teach the parsermodule about floor division. Fixes
[ 676521 ] parser module validation failure bugfix candidate.
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r--Lib/test/test_parser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index c0b1bfc..81708b5 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -51,6 +51,10 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
self.check_expr("foo(a, b, c, *args, **kw)")
self.check_expr("foo(a, b, c, **kw)")
self.check_expr("foo + bar")
+ self.check_expr("foo - bar")
+ self.check_expr("foo * bar")
+ self.check_expr("foo / bar")
+ self.check_expr("foo // bar")
self.check_expr("lambda: 0")
self.check_expr("lambda x: 0")
self.check_expr("lambda *y: 0")
@@ -85,6 +89,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
self.check_suite("a -= b")
self.check_suite("a *= b")
self.check_suite("a /= b")
+ self.check_suite("a //= b")
self.check_suite("a %= b")
self.check_suite("a &= b")
self.check_suite("a |= b")