diff options
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 3eea121331..bb922c884d 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -270,6 +270,15 @@ the function call setup. See <http://bugs.python.org/issue2016>. ... print a,b >>> f(**x) 1 2 + +A obscure message: + + >>> def f(a, b): + ... pass + >>> f(b=1) + Traceback (most recent call last): + ... + TypeError: f() takes exactly 2 arguments (1 given) """ import unittest |