Without the dels, the Context was not being cleaned up, so its __del__
never fired. (The symptom being that after running the tests, there were
keys still around.) So it seemed that something still had a reference to
the Context somewhere. When I added the del statements, that did get the
cleanup to work. It is possible that I added more del's than were really
needed to get the garbage collected.




On Tue, Mar 25, 2014 at 2:31 PM, Blake Griffith <notifications@github.com>wrote:

> In distarray/tests/test_umath.py:
>
> > @@ -57,13 +55,12 @@ def setUpClass(cls):
> >
> >      @classmethod
> >      def tearDownClass(cls):
> > +        cls.context.client.close()
>
> Yes. And yes probably. But I can't explain the dels. @markkness<https://github.com/markkness>why are we not using the automatic garbage collection here?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/enthought/distarray/pull/241/files#r10948871>
> .
>