[Python-checkins] cpython (2.7): Issue #27358: Backported tests.
serhiy.storchaka
python-checkins at python.org
Sun Oct 2 04:13:25 EDT 2016
https://hg.python.org/cpython/rev/29a658d47ae8
changeset: 104236:29a658d47ae8
branch: 2.7
parent: 104230:a8168a52a56f
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
@@ -201,6 +201,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