summaryrefslogtreecommitdiff
path: root/src/tests/test.py
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2015-12-09 10:19:54 +0100
committerMichele Simionato <michele.simionato@gmail.com>2015-12-09 10:19:54 +0100
commit51f1f8057605df65e39649333139e7d55abfd646 (patch)
treefbeb5a2150195b161247e764ffa09aa11f2ec0b8 /src/tests/test.py
parentf62d1193eb597c3fb9f47391452d4fbda7613546 (diff)
downloadpython-decorator-git-51f1f8057605df65e39649333139e7d55abfd646.tar.gz
Added a doctest: +ELLIPSIS to fix old Python versions
Diffstat (limited to 'src/tests/test.py')
-rw-r--r--src/tests/test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/test.py b/src/tests/test.py
index b01bc10..5bd34e8 100644
--- a/src/tests/test.py
+++ b/src/tests/test.py
@@ -89,7 +89,8 @@ class ExtraTestCase(unittest.TestCase):
def func(**kw):
return kw
- self.assertEqual(func(f='a'), {'f': 'a'})
+ # there is no confusion when passing args as a keyword argument
+ self.assertEqual(func(args='a'), {'args': 'a'})
# ################### test dispatch_on ############################# #
# adapted from test_functools in Python 3.5