[pypy-commit] pypy issue2996: add a failing test (issue 2996)
mattip
pypy.commits at gmail.com
Sat Apr 13 15:54:42 EDT 2019
Author: Matti Picus <matti.picus at gmail.com>
Branch: issue2996
Changeset: r96464:f91f6fa3ca10
Date: 2019-04-13 22:51 +0300
http://bitbucket.org/pypy/pypy/changeset/f91f6fa3ca10/
Log: add a failing test (issue 2996)
diff --git a/pypy/objspace/std/test/test_callmethod.py b/pypy/objspace/std/test/test_callmethod.py
--- a/pypy/objspace/std/test/test_callmethod.py
+++ b/pypy/objspace/std/test/test_callmethod.py
@@ -22,6 +22,17 @@
assert c.m(**{'u': 4}) == ((c,), {'u': 4})
""")
+ def test_call_star(self):
+ exec("""if 1:
+ class Foo:
+ def meth(self, a1, *args, offset=42):
+ return args, offset
+
+ ret = Foo().meth(12, **{})
+ assert type(ret[0][0]) is Foo
+ assert ret[1] == 42
+ """)
+
def test_call_attribute(self):
exec("""if 1:
class C(object):
More information about the pypy-commit
mailing list