From: Serhiy Storchaka Date: Sun, 2 Oct 2016 08:10:18 +0000 (+0300) Subject: Issue #27358: Backported tests. X-Git-Tag: v2.7.13rc1~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8a1a2707bb37eb68bc49b89d7eb00d9bb756b93;p=python Issue #27358: Backported tests. --- diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 6860751e57..4aa2dfc2b5 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -201,6 +201,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): ...