Home | History | Annotate | Download | only in test

Lines Matching refs:ref1

91         ref1 = weakref.ref(o, self.callback)
94 self.assertTrue(ref1() is None,
116 ref1 = weakref.ref(c, callback)
122 ref1 = weakref.proxy(o, self.callback)
129 self.assertRaises(weakref.ReferenceError, check, ref1)
155 ref1 = weakref.ref(o)
160 self.assertTrue(ref1 is ref2,
165 ref1 = weakref.ref(o)
167 self.assertTrue(ref1 is ref2,
278 ref1 = weakref.proxy(o)
280 self.check_proxy(o, ref1)
282 self.assertTrue(type(ref1) is weakref.CallableProxyType,
284 ref1('twinkies!')
287 ref1(x='Splat.')
292 self.assertRaises(TypeError, ref1)
295 self.assertRaises(TypeError, ref1, 1, 2, 3)
338 ref1 = weakref.ref(o)
348 del ref1, ref2, proxy1, proxy2
359 ref1 = weakref.ref(o, self.callback)
361 del ref1
366 ref1 = weakref.ref(o, self.callback)
369 self.assertTrue(weakref.getweakrefs(o) == [ref1],
372 del ref1