summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_keywordonlyarg.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-17 23:54:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-04-17 23:54:35 (GMT)
commit2a1fdc4c760bf862accf625558e9bf54b9b9cd7c (patch)
tree86069f9cb1c3d0b9f74f9d3d3c6771dc64e8f833 /Lib/test/test_keywordonlyarg.py
parent64befe939c1da377053f6a410f082db02184c5e2 (diff)
parent32c59b6fc1140486a9915876054365b40bd88da9 (diff)
downloadcpython-2a1fdc4c760bf862accf625558e9bf54b9b9cd7c.zip
cpython-2a1fdc4c760bf862accf625558e9bf54b9b9cd7c.tar.gz
cpython-2a1fdc4c760bf862accf625558e9bf54b9b9cd7c.tar.bz2
merge 3.2 (#14607)
Diffstat (limited to 'Lib/test/test_keywordonlyarg.py')
-rw-r--r--Lib/test/test_keywordonlyarg.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_keywordonlyarg.py b/Lib/test/test_keywordonlyarg.py
index 61d40f9..0503a7f 100644
--- a/Lib/test/test_keywordonlyarg.py
+++ b/Lib/test/test_keywordonlyarg.py
@@ -170,6 +170,12 @@ class KeywordOnlyArgTestCase(unittest.TestCase):
# used to fail with a SystemError.
lambda *, k1=unittest: None
+ def test_mangling(self):
+ class X:
+ def f(self, *, __a=42):
+ return __a
+ self.assertEqual(X().f(), 42)
+
def test_main():
run_unittest(KeywordOnlyArgTestCase)