(self)
| 112 | self.assertEqual(d, {'a':3}) |
| 113 | |
| 114 | def test_kwargs_copy(self): |
| 115 | # Issue #29532: Altering a kwarg dictionary passed to a constructor |
| 116 | # should not affect a partial object after creation |
| 117 | d = {'a': 3} |
| 118 | p = self.partial(capture, **d) |
| 119 | self.assertEqual(p(), ((), {'a': 3})) |
| 120 | d['a'] = 5 |
| 121 | self.assertEqual(p(), ((), {'a': 3})) |
| 122 | |
| 123 | def test_arg_combinations(self): |
| 124 | # exercise special code paths for zero args in either partial |
nothing calls this directly
no test coverage detected