[IPython-dev] Test failures

Fernando Perez fperez.net at gmail.com
Mon Aug 11 19:43:53 EDT 2008


On Mon, Aug 11, 2008 at 4:00 PM, Gael Varoquaux
<gael.varoquaux at normalesup.org> wrote:
> Hi,
>
> I have synced my branch with trunk, and I currently have 3 test failing,
> 2 of which I know are just noise:
>
> ===============================================================================
>  File
> "/home/gvaroquaux/dev/ipython/ipython-frontend/IPython/frontend/cocoa/tests/test_cocoa_frontend.py",
> line 21, in <module>
>    from IPython.frontend.cocoa.cocoa_frontend import
> IPythonCocoaController
>  File
> "/home/gvaroquaux/dev/ipython/ipython-frontend/IPython/frontend/cocoa/cocoa_frontend.py",
> line 28, in <module>
>    import objc
> ImportError: No module named objc
> ===============================================================================
>
> and
>
> ===============================================================================
> File
> "/home/gvaroquaux/dev/ipython/ipython-frontend/IPython/kernel/tests/test_enginefc.py",
> line 27, in <module>
>    from IPython.kernel.fcutil import Tub, UnauthenticatedTub
>  File
> "/home/gvaroquaux/dev/ipython/ipython-frontend/IPython/kernel/fcutil.py",
> line 20, in <module>
>    from foolscap import Tub, UnauthenticatedTub
> ImportError: No module named foolscap
> ===============================================================================


> These tests should be skipped if objc or foolscap cannot be imported.

Both of these later we should mark with skipif() decorators for that purpose.

> 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.

Cheers,

f



More information about the IPython-dev mailing list