made observers accessible and observers now only weak reference the observables

This commit is contained in:
mzwiessele 2014-04-04 14:20:10 +01:00
parent 04a889b3a9
commit 11059fb615
3 changed files with 24 additions and 8 deletions

View file

@ -197,6 +197,7 @@ class Test(ListDictTestCase):
self.assertTrue(par.checkgrad())
self.assertTrue(pcopy.checkgrad())
self.assertTrue(pcopy.kern.checkgrad())
import ipdb;ipdb.set_trace()
self.assertIn(par.observers[0], pcopy.observers)
self.assertEqual(par.count, 3)
self.assertEqual(pcopy.count, 6) # 3 of each call to checkgrad