[Python-checkins] CVS: /python/nondist/src/Compiler/tests test_func.py,1.8,1.9
Jeremy Hylton
python-dev@python.org
Tue, 2 May 2000 18:34:04 -0400
- Previous message: [Python-checkins] CVS: /python/nondist/src/Compiler/compiler ast.py,1.8,1.9 pyassem.py,1.8,1.9 pycodegen.py,1.19,1.20 transformer.py,1.9,1.10
- Next message: [Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.133,2.134
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /projects/cvsroot//python/nondist/src/Compiler/tests
In directory goon.cnri.reston.va.us:/tmp/Compiler/tests
Modified Files:
test_func.py
Log Message:
patches from Mark Hammond
Attached is a set of diffs for the .py compiler that adds support
for the new extended call syntax.
tests/test_func.py
Added tests of the new extended call syntax.
Index: test_func.py
===================================================================
RCS file: /projects/cvsroot//python/nondist/src/Compiler/tests/test_func.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** test_func.py 2000/02/17 22:11:39 1.8
--- test_func.py 2000/05/02 22:34:01 1.9
***************
*** 24,27 ****
--- 24,38 ----
print test5()
print test5(2, 0, 1, 2)
+ # Some extended call tests.
+ args = 0, (6, (3,22))
+ kwargs = {'y':0, 'z':0}
+ print test4( ((10,6), 2), *args, **kwargs)
+ # Ensure kw args can come before the extended syntax.
+ print test4( ((10,6), 2), y=0,z=0, *args)
+ kwargs = {'a':1, 'c':4}
+ print test1( **kwargs )
+
+ print test5( *(2, 0, 1, 2) )
+ print test5( 2, *(0, 1, 2) )
test()
- Previous message: [Python-checkins] CVS: /python/nondist/src/Compiler/compiler ast.py,1.8,1.9 pyassem.py,1.8,1.9 pycodegen.py,1.19,1.20 transformer.py,1.9,1.10
- Next message: [Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.133,2.134
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]