[IPython-dev] Testcrash on trunk

Jörgen Stenarson jorgen.stenarson@bostream...
Wed Apr 15 14:09:53 CDT 2009

Fernando Perez skrev:
> On Wed, Apr 15, 2009 at 11:37 AM, Jörgen Stenarson
> <jorgen.stenarson@bostream.nu> wrote:
>> Jörgen Stenarson skrev:
>>> I'm getting this crash using trunk (rev1163). Anyone else see this?
>>> It worked fine with (rev1163).
>>> /Jörgen
>> Ooops I confused the revision numbers. The latest revision that seems to
>> work for me is 1159. The trunk revision I tried first was 1166.
> No, I don't see this at all, no matter how I run the suite.  But Ville
> reported seeing very few tests when he updated one of his branches, I
> wonder if these are related.
> Perhaps you could try to use the --pdb-failures option to debug it a
> little to collect more info?  I'm quite puzzled...
I tried this and just end up in the at the ordinary shellprompt i.e. no pdb.

That error on import smells like a circular import problem.

I have tried adding "import IPython.Release" at the top of the iptest
script and that line runs just fine so it seems that something happens
in iptest.main that makes this failure.

C:\python\external\ipython-trunk\IPython\tests>iptest --pdb-failures
ERROR: Failure: ImportError (cannot import name Release)
Traceback (most recent call last):
.py", line 362, in loadTestsFromName
     addr.filename, addr.module)
er.py", line 39, in importFromPath
     return self.importFromDir(dir_path, fqname)
er.py", line 82, in importFromDir
     mod = load_module(part_fqname, fh, filename, desc)
   File "c:\python\external\ipython-trunk\IPython\__init__.py", line 63, 
in <modu
     from IPython import Release # do it explicitly so pydoc can see it 
- pydoc b
ImportError: cannot import name Release

Ran 1 test in 0.000s

FAILED (errors=1)


More information about the IPython-dev mailing list