changeset: 104235:ec84d815e90f branch: 3.5 parent: 104229:40d7ce58ebd0 user: Serhiy Storchaka date: Sun Oct 02 11:10:18 2016 +0300 files: Lib/test/test_extcall.py description: Issue #27358: Backported tests. diff -r 40d7ce58ebd0 -r ec84d815e90f Lib/test/test_extcall.py --- a/Lib/test/test_extcall.py Sun Oct 02 10:36:33 2016 +0300 +++ b/Lib/test/test_extcall.py Sun Oct 02 11:10:18 2016 +0300 @@ -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): ...