[IPython-dev] Test failures

Gael Varoquaux gael.varoquaux@normalesup....
Mon Aug 11 21:23:20 CDT 2008


On Mon, Aug 11, 2008 at 04:43:53PM -0700, Fernando Perez wrote:
> > In addition, I have a test failing for which I am not sure where the
> > problem is:

> > ======================================================================
> > FAIL: testExecute (IPython.kernel.core.tests.test_shell.BasicShellTest)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >  File
> > "/home/gvaroquaux/dev/ipython/ipython-frontend/IPython/kernel/core/tests/test_shell.py",
> > line 37, in testExecute
> >    self.assertEquals(result, dict(zip(resultKeys,c)))
> > AssertionError: {'commandIndex': 5, 'stdin': '2.0*math.pi', 'stderr': '',
> > 'stdout': ''} != {'commandIndex': 5, 'stdin': '2.0*math.pi', 'stderr':
> > '', 'stdout': '6.2831853071795862\n'}

> > ----------------------------------------------------------------------

> > Does this test run on other people's box? If so, I'll look at it more
> > closely.

> Passes here.

OK, the problem is that, in some of my test, I use code that calls
ipmaker.make_IPython(). As a result, the output gets trap, and apparently
I do not free it well-enough. Any clue to how to free this output?

I think the problem comes from there because if I comment this line out,
or if I do not include these tests, the test we are worried about passes.

Cheers,

Gaël


More information about the IPython-dev mailing list