(self)
| 177 | self.assertRaises(ZeroDivisionError, self.partial(f, y=0), 1) |
| 178 | |
| 179 | def test_weakref(self): |
| 180 | f = self.partial(int, base=16) |
| 181 | p = proxy(f) |
| 182 | self.assertEqual(f.func, p.func) |
| 183 | f = None |
| 184 | support.gc_collect() # For PyPy or other GCs. |
| 185 | self.assertRaises(ReferenceError, getattr, p, 'func') |
| 186 | |
| 187 | def test_with_bound_and_unbound_methods(self): |
| 188 | data = list(map(str, range(10))) |
nothing calls this directly
no test coverage detected