[Python-checkins] cpython (3.5): Issue #27358: Backported tests.
serhiy.storchaka
python-checkins at python.org
Sun Oct 2 04:12:33 EDT 2016
https://hg.python.org/cpython/rev/ec84d815e90f
changeset: 104235:ec84d815e90f
branch: 3.5
parent: 104229:40d7ce58ebd0
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Oct 02 11:10:18 2016 +0300
summary:
Issue #27358: Backported tests.
files:
Lib/test/test_extcall.py | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py
--- a/Lib/test/test_extcall.py
+++ b/Lib/test/test_extcall.py
@@ -254,6 +254,21 @@
...
TypeError: h() argument after ** must be a mapping, not function
+ >>> h(**[])
+ Traceback (most recent call last):
+ ...
+ TypeError: h() argument after ** must be a mapping, not list
+
+ >>> h(a=1, **h)
+ Traceback (most recent call last):
+ ...
+ TypeError: h() argument after ** must be a mapping, not function
+
+ >>> h(a=1, **[])
+ Traceback (most recent call last):
+ ...
+ TypeError: h() argument after ** must be a mapping, not list
+
>>> dir(**h)
Traceback (most recent call last):
...
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list