[pypy-svn] r30030 - pypy/dist/pypy/objspace/cpy/test
rhymes at codespeak.net
rhymes at codespeak.net
Fri Jul 14 11:01:04 CEST 2006
Author: rhymes
Date: Fri Jul 14 11:01:01 2006
New Revision: 30030
Modified:
pypy/dist/pypy/objspace/cpy/test/test_function.py
Log:
another test for *args
Modified: pypy/dist/pypy/objspace/cpy/test/test_function.py
==============================================================================
--- pypy/dist/pypy/objspace/cpy/test/test_function.py (original)
+++ pypy/dist/pypy/objspace/cpy/test/test_function.py Fri Jul 14 11:01:01 2006
@@ -67,3 +67,12 @@
space.wrap("world"))
result = space.int_w(w_result)
assert result == -4
+
+def test_star_args_no_args():
+ space = CPyObjSpace()
+ func = interp2app(entrypoint3).__spacebind__(space)
+ bltin = BuiltinFunction(func)
+ w_entrypoint = space.wrap(bltin)
+ w_result = space.call_function(w_entrypoint, space.wrap(-2))
+ result = space.int_w(w_result)
+ assert result == 0
More information about the Pypy-commit
mailing list