From 0511e504b8d722270c683b3c9a2c013af0bc5cc6 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 28 Dec 2008 17:38:37 +0100 Subject: [PATCH] extended test case to make sure arguments pass as expected --- tests/run/kwonlyargs.pyx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/tests/run/kwonlyargs.pyx b/tests/run/kwonlyargs.pyx index aef2f1ef..d5f55298 100644 --- a/tests/run/kwonlyargs.pyx +++ b/tests/run/kwonlyargs.pyx @@ -103,31 +103,34 @@ __doc__ = u""" """ def b(a, b, c): - pass + a, b, c = b, c, a def c(a, b, c=1): - pass + a, b, c = b, c, a def d(a, b, *, c = 88): - pass + a, b, c = b, c, a def e(a, b, c = 88, **kwds): - pass + a, b, c = b, c, a def f(a, b, *, c, d = 42): - pass + a, b, c, d = b, c, d, a def g(a, b, *, c, d = 42, e = 17, f, **kwds): - pass + a, b, c, d, e, f = b, c, d, e, f, a def h(a, b, *args, c, d = 42, e = 17, f, **kwds): - pass + a, b, c, d, e, f = b, c, d, e, f, a def k(a, b, c=1, *args, d = 42, e = 17, f, **kwds): - pass + a, b, c, d, e, f = b, c, d, e, f, a def l(*, a, b, c = 88): - pass + a, b, c = b, c, a def m(a, *, b, c = 88): - pass + a, b, c = b, c, a + +def n(a, *, b, c = 88): + a, b, c = b, c, a -- 2.26.2