[IPython-dev] Looking towards 0.10...

Fernando Perez fperez.net at gmail.com
Mon Mar 16 14:55:37 EDT 2009


Hi Jorgen,

On Mon, Mar 16, 2009 at 11:16 AM, Jörgen Stenarson
<jorgen.stenarson at bostream.nu> wrote:

> I have just merged from trunk and removed the debug code that was left over
> from your fix of the tests. Hopefully it's good to go now.
>
> When doing this I tried to run iptest one level above IPython/ and got a
> cryptic crash that claims it is not possible to import Release. I guess this
> is because iptest is not meant to be run from there but a better error
> message would be good to have.



> C:\python\external\ipython>python scripts/iptest
> E
> ======================================================================
> ERROR: Failure: ImportError (cannot import name Release)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "C:\Python25\lib\site-packages\nose-0.11.0.dev_r0-py2.5.egg\nose\loader.py",
> line 364, in loadTestsFromName
>    addr.filename, addr.module)
>  File
> "C:\Python25\lib\site-packages\nose-0.11.0.dev_r0-py2.5.egg\nose\importer.py",
> line 39, in importFromPath
>    return self.importFromDir(dir_path, fqname)
>  File
> "C:\Python25\lib\site-packages\nose-0.11.0.dev_r0-py2.5.egg\nose\importer.py",
> line 82, in importFromDir
>    mod = load_module(part_fqname, fh, filename, desc)
>  File "c:\python\external\ipython\IPython\__init__.py", line 63, in <module>
>    from IPython import Release # do it explicitly so pydoc can see it -
> pydoc bug
> ImportError: cannot import name Release
>
> ----------------------------------------------------------------------
> Ran 1 test in 0.000s
>
> FAILED (errors=1)
>
> C:\python\external\ipython>cd IPython
>
> C:\python\external\ipython\IPython>python ../scripts/iptest
> SS...........SSSSSSSSSSS.S...S................
> ----------------------------------------------------------------------
> Ran 46 tests in 0.703s
>
> OK (SKIP=15)

Mmh, I don't see that error here:

maqroll[ipython]> python scripts/iptest -vvs
Failure: SkipTest (This test requires zope.interface, Twisted,
Foolscap and PyObjC) ... SKIP: This test requires zope.interface,
Twisted, Foolscap and PyObjC
test_blockID_added_to_failure
(IPython.frontend.tests.test_asyncfrontendbase.TestAsyncFrontendBase)
... ok

[...]

Testcase to see if we can call get_security_dir without Exceptions. ... ok
test_popkey_1, Basic usage test of popkey ... ok
test_popkey_2, Test to see that popkey of non occuring keys ... ok
test_popkey_3, Tests to see that popkey calls returns the correct value ... ok
IPython.tests.test_magic.test_rehashx ... ok

----------------------------------------------------------------------
Ran 431 tests in 42.090s

OK (SKIP=9)

So I'm going to go ahead and merge your branch in a minute.  Later,
once all the new testing machinery is in place, we can more easily
shake out if there are platform- or installation-specific issues with
being able to load the whole test suite.

Thanks for the work and being so accomodating with the review process!

Cheers,

f



More information about the IPython-dev mailing list