diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-09 04:29:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-09 04:29:08 (GMT) |
commit | dae2ef1cfad60b149370b4012aa48bea2dd27445 (patch) | |
tree | 693595202f70ed00e60b57381cc4f76e6c7b9b61 /Lib/test/test_functools.py | |
parent | 43e3d22fee9b22f6f9dec4364ea4ee796faefaab (diff) | |
parent | 65bcdd7195666e20eb56a7d49b5dd0ee2278e506 (diff) | |
download | cpython-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.py | 2 |
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 |