From: Serhiy Storchaka Date: Sun, 2 Oct 2016 08:10:18 +0000 (+0300) Subject: Issue #27358: Backported tests. X-Git-Tag: v3.6.0b2~69^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d556a352424c92d18ecfefdfeaf08db3ddf1c95f;p=thirdparty%2FPython%2Fcpython.git Issue #27358: Backported tests. --- diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 420f12287b42..015cdfcf1ac6 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -254,6 +254,21 @@ not function ... 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): ...