diff options
Diffstat (limited to 'Lib/test/test_keywordonlyarg.py')
-rw-r--r-- | Lib/test/test_keywordonlyarg.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_keywordonlyarg.py b/Lib/test/test_keywordonlyarg.py index fc67c98316..124257ecc7 100644 --- a/Lib/test/test_keywordonlyarg.py +++ b/Lib/test/test_keywordonlyarg.py @@ -144,6 +144,13 @@ class KeywordOnlyArgTestCase(unittest.TestCase): except TypeError: pass + def test_doublestar_only(self): + def f(*, **kw): + return kw + + self.assertEqual(f(), {}) + self.assertEqual(f(k1=1, k2=2), {'k1' : 1, 'k2' : 2}) + def test_main(): run_unittest(KeywordOnlyArgTestCase) |