[Python-checkins] python/dist/src/Lib/test test_parser.py,1.13,1.14

mwh@users.sourceforge.net mwh@users.sourceforge.net
2003年1月29日 06:20:25 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv675/Lib/test
Modified Files:
	test_parser.py 
Log Message:
Teach the parsermodule about floor division. Fixes
[ 676521 ] parser module validation failure
bugfix candidate.
Index: test_parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_parser.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_parser.py	22 Aug 2002 19:43:51 -0000	1.13
--- test_parser.py	29 Jan 2003 14:20:23 -0000	1.14
***************
*** 52,55 ****
--- 52,59 ----
 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")
***************
*** 86,89 ****
--- 90,94 ----
 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")

AltStyle によって変換されたページ (->オリジナル) /