[IPython-dev] Testcrash on trunk

Laurent Dufréchou laurent.dufrechou@gmail....
Wed Apr 15 15:47:33 CDT 2009


Same bug here.
C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\tests>iptest
E
======================================================================
ERROR: Failure: ImportError (cannot import name Release)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python25\lib\site-packages\nose\loader.py", line 364, in
loadTestsFromName
    addr.filename, addr.module)
  File "C:\python25\lib\site-packages\nose\importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "C:\python25\lib\site-packages\nose\importer.py", line 82, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\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.002s

FAILED (errors=1)

##############

C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\tests>nosetest
s --version
nosetests-script.py version 0.10.4

##############

Hey interesting:
C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\tests>nosetest
s
.................EEE..ESSS
======================================================================
ERROR: Failure: NameError (name '_ip' is not defined)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python25\lib\site-packages\nose\loader.py", line 364, in
loadTestsFromName
    addr.filename, addr.module)
  File "C:\python25\lib\site-packages\nose\importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "C:\python25\lib\site-packages\nose\importer.py", line 84, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\tests\test_ip
lib.py", line 31, in <module>
    ip = _ip    # This is the ipapi instance
NameError: name '_ip' is not defined

======================================================================
ERROR: IPython.tests.test_magic.test_rehashx
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python25\lib\site-packages\nose\case.py", line 182, in runTest
    self.test(*self.arg)
  File
"C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\tests\test_ma
gic.py", line 21, in test_rehashx
    _ip.IP.alias_table.clear()
NameError: global name '_ip' is not defined

======================================================================
ERROR: Test that object's __del__ methods are called on exit.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python25\lib\site-packages\nose\case.py", line 182, in runTest
    self.test(*self.arg)
  File
"C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\tests\test_ma
gic.py", line 85, in test_obj_del
    out = _ip.IP.getoutput('ipython %s' % del_file)
NameError: global name '_ip' is not defined

======================================================================
ERROR: test suite
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\python25\lib\site-packages\nose\suite.py", line 154, in run
    self.setUp()
  File "C:\python25\lib\site-packages\nose\suite.py", line 180, in setUp
    if not self:
  File "C:\python25\lib\site-packages\nose\suite.py", line 65, in
__nonzero__
    test = self.test_generator.next()
  File "C:\python25\lib\site-packages\nose\loader.py", line 221, in generate
    for test in g():
  File
"C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\testing\decor
ators.py", line 178, in skipper_gen
    for x in f(*args, **kwargs):
  File
"C:\Users\ldufrechou\Desktop\Ipython-dev\ipython-trunk\IPython\tests\test_ma
gic.py", line 114, in test_numpy_clear_array_undec
    _ip.ex('import numpy as np')
NameError: global name '_ip' is not defined

----------------------------------------------------------------------
Ran 22 tests in 1.090s

######################

Thus on very fresh install of ipython.(trunk rev 1166)


> -----Message d'origine-----
> De : ipython-dev-bounces@scipy.org [mailto:ipython-dev-
> bounces@scipy.org] De la part de Fernando Perez
> Envoyé : mercredi 15 avril 2009 21:31
> À : Jörgen Stenarson
> Cc : IPython-dev List
> Objet : Re: [IPython-dev] Testcrash on trunk
> 
> Hey,
> 
> On Wed, Apr 15, 2009 at 12:09 PM, Jörgen Stenarson
> <jorgen.stenarson@bostream.nu> wrote:
> 
> > "c:\python25\lib\site-packages\nose-0.11.0.dev_r596-
> py2.5.egg\nose\loader
> > .py", line 362, in loadTestsFromName
> 
> I see you're using a dev version of nose, I'm using 0.10.4.  I'll try
> this and see if it makes a difference, but I need to run now, I won't
> be back for a few hours.
> 
> If in the meantime you could check to see if the problem is still
> present for you with nose 0.10.4, that would be great.
> 
> I'm very puzzled, no matter what I do I can't reproduce it, so I can't
> debug it...
> 
> Cheers,
> 
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



More information about the IPython-dev mailing list