Author: Matti Picus <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to