summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-05-09 04:29:08 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-05-09 04:29:08 (GMT)
commitdae2ef1cfad60b149370b4012aa48bea2dd27445 (patch)
tree693595202f70ed00e60b57381cc4f76e6c7b9b61 /Lib/test/test_functools.py
parent43e3d22fee9b22f6f9dec4364ea4ee796faefaab (diff)
parent65bcdd7195666e20eb56a7d49b5dd0ee2278e506 (diff)
downloadcpython-dae2ef1cfad60b149370b4012aa48bea2dd27445.zip
cpython-dae2ef1cfad60b149370b4012aa48bea2dd27445.tar.gz
cpython-dae2ef1cfad60b149370b4012aa48bea2dd27445.tar.bz2
merge 3.4
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index e7f34cc..03dd545 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -77,9 +77,11 @@ class TestPartial:
# exercise special code paths for no keyword args in
# either the partial object or the caller
p = self.partial(capture)
+ self.assertEqual(p.keywords, {})
self.assertEqual(p(), ((), {}))
self.assertEqual(p(a=1), ((), {'a':1}))
p = self.partial(capture, a=1)
+ self.assertEqual(p.keywords, {'a':1})
self.assertEqual(p(), ((), {'a':1}))
self.assertEqual(p(b=2), ((), {'a':1, 'b':2}))
# keyword args in the call override those in the partial object