On Tue, 01 Apr 2014 14:10:26 -0700
Eric89GXL <notifications@github.com> wrote:

> > +    def setUp(self):
> > +        self.app = vispy.app.Canvas()
> > +        self.app.show()
> > +        if pyopencl:
> > +            self.default_ctx, self.ids = vispy.opencl._make_context()
> > +
> > +    def tearDown(self):
> > +        self.app.close()
> > +        del self.app
> > +
> > +    def test_opencl_context_free(self):
> > +        if pyopencl:
> > +            ctx = vispy.opencl.OpenCL.get_context()
> > +            self.assert_(ctx.devices == self.default_ctx.devices)
> > +        else:
> > +            try:
> 
> would be better to use `assert_raises` or `self.assertRaises` here to be consistent with other modules.

Well they are not the same according to unittest.py:

    assertRaises = failUnlessRaises

    assert_ = assertTrue = failUnless

-- 
Jerome Kieffer <Jerome.Kieffer@terre-adelie.org>