• Home
  • Raw
  • Download

Lines Matching refs:capture

21 def capture(*args, **kw):  function
44 p = self.partial(capture, 1, 2, a=10, b=20)
51 p = self.partial(capture, 1, 2, a=10, b=20)
53 self.assertEqual(p.func, capture)
92 p = self.partial(capture)
95 p = self.partial(capture, 1, 2)
102 p = self.partial(capture)
106 p = self.partial(capture, a=1)
116 p = self.partial(capture, *args)
124 p = self.partial(capture, a=a)
131 p = self.partial(capture, 0, a=1)
188 f.__setstate__((capture, (1,), dict(a=10), dict(attr=[])))
190 (capture, (1,), dict(a=10), dict(attr=[])))
193 f.__setstate__((capture, (1,), dict(a=10), None))
194 self.assertEqual(signature(f), (capture, (1,), dict(a=10), {}))
197 f.__setstate__((capture, (1,), None, None))
203 f.__setstate__((capture, (), {}, None))
204 self.assertEqual(signature(f), (capture, (), {}, {}))
211 self.assertRaises(TypeError, f.__setstate__, (capture, (), {}))
212 self.assertRaises(TypeError, f.__setstate__, (capture, (), {}, {}, None))
213 self.assertRaises(TypeError, f.__setstate__, [capture, (), {}, None])
215 self.assertRaises(TypeError, f.__setstate__, (capture, None, {}, None))
216 self.assertRaises(TypeError, f.__setstate__, (capture, [], {}, None))
217 self.assertRaises(TypeError, f.__setstate__, (capture, (), [], None))
221 f.__setstate__((capture, MyTuple((1,)), MyDict(a=10), None))
223 self.assertEqual(s, (capture, (1,), dict(a=10), {}))
231 f.__setstate__((capture, BadTuple((1,)), {}, None))
233 self.assertEqual(s, (capture, (1,), {}, {}))
240 f = self.partial(capture)
247 f.__setstate__((capture, (), {}, {}))
249 f = self.partial(capture)
250 f.__setstate__((capture, (f,), {}, {}))
257 f_copy.__setstate__((capture, (), {}, {}))
259 f.__setstate__((capture, (), {}, {}))
261 f = self.partial(capture)
262 f.__setstate__((capture, (), {'a': f}, {}))
269 f_copy.__setstate__((capture, (), {}, {}))
271 f.__setstate__((capture, (), {}, {}))