[IPython-dev] Test failures and errors in trunk
Brian Granger
ellisonbg.net at gmail.com
Wed Mar 18 16:24:41 EDT 2009
Hi,
I pulled the latest trunk this morning and ran the test suite. I got
a huge mess of errors and failures. My pre-merge branch had none of
this, so the recent merges have introduced many new bugs.
Some of these bugs look to be very subtle and related to the deep
mysteries of Twisted.
Soo...
* Can everyone go and run the test suite WITH ALL OF IPYTHON's
DEPENDENCIES INSTALLED!!! If you don't have some of the optional
dependencies installed, many tests will be skipped even though they
would fail if run.
* If one of your branches was merged, please go back and make sure the
test suite passes in the merged version of your branch.
* Please find and fix the bugs that your branch/merge introduced.
I am hoping everyone can track their bugs down. If not, we will need
to start backing out the merges to help narrow down where the subtle
twisted related bugs have crept in.
Here is the current result of running the test suite:
brian-grangers-macbook-pro:~ bgranger$ iptest
.................E.............S......................................../Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/trial/unittest.py:1350:
DeprecationWarning: Reactor already running! This behavior is
deprecated since Twisted 8.0
reactor.run()
...........................................................................................................................................................................................ETraceback
(most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py",
line 460, in __bootstrap
self.run()
File "/Users/bgranger/Documents/Computation/IPython/branches/ipython/IPython/kernel/twistedutil.py",
line 42, in run
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/base.py",
line 1128, in run
self.mainLoop()
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/base.py",
line 1137, in mainLoop
self.runUntilCurrent()
--- <exception caught here> ---
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/base.py",
line 729, in runUntilCurrent
f(*a, **kw)
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py",
line 269, in errback
self._startRunCallbacks(fail)
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py",
line 298, in _startRunCallbacks
raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
............................................................................................................................................................................................E...........F.........F.......S....S......SS..SSS..............SSS....
======================================================================
ERROR: Failure: ImportError (No module named Numeric)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bgranger/Library/Python/2.5/site-packages/nose-0.10.4-py2.5.egg/nose/loader.py",
line 364, in loadTestsFromName
addr.filename, addr.module)
File "/Users/bgranger/Library/Python/2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py",
line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/bgranger/Library/Python/2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py",
line 84, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/Extensions/numeric_formats.py",
line 6, in <module>
from Numeric import ArrayType
ImportError: No module named Numeric
======================================================================
ERROR: testExecuteFailuresEngineService_0
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/base.py",
line 729, in runUntilCurrent
f(*a, **kw)
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py",
line 269, in errback
self._startRunCallbacks(fail)
File "/Users/bgranger/Library/Python/2.5/site-packages/Twisted-8.2.0pre1-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py",
line 298, in _startRunCallbacks
raise AlreadyCalledError
AlreadyCalledError
======================================================================
ERROR: Failure: ImportError (No module named Numeric)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bgranger/Library/Python/2.5/site-packages/nose-0.10.4-py2.5.egg/nose/loader.py",
line 364, in loadTestsFromName
addr.filename, addr.module)
File "/Users/bgranger/Library/Python/2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py",
line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/bgranger/Library/Python/2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py",
line 84, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/numutils.py",
line 31, in <module>
import Numeric
ImportError: No module named Numeric
======================================================================
FAIL: Doctest: IPython.testing.plugin.dtexample.ipfunc
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/ipdoctest.py",
line 382, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for IPython.testing.plugin.dtexample.ipfunc
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/dtexample.py",
line 27, in ipfunc
----------------------------------------------------------------------
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/dtexample.py",
line 44, in IPython.testing.plugin.dtexample.ipfunc
Failed example:
_ip.system("echo hello")
Exception raised:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1212, in __run
compileflags, 1) in test.globs
File "<doctest IPython.testing.plugin.dtexample.ipfunc[3]>",
line 1, in <module>
_ip.system("echo hello")
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/ipdoctest.py",
line 137, in xsys
sys.stdout.write(commands.getoutput(cmd))
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 44, in getoutput
return getstatusoutput(cmd)[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 54, in getstatusoutput
text = pipe.read()
IOError: [Errno 4] Interrupted system call
----------------------------------------------------------------------
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/dtexample.py",
line 47, in IPython.testing.plugin.dtexample.ipfunc
Failed example:
_ip.system("echo hello > /tmp/foo")
Exception raised:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1212, in __run
compileflags, 1) in test.globs
File "<doctest IPython.testing.plugin.dtexample.ipfunc[4]>",
line 1, in <module>
_ip.system("echo hello > /tmp/foo")
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/ipdoctest.py",
line 137, in xsys
sys.stdout.write(commands.getoutput(cmd))
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 44, in getoutput
return getstatusoutput(cmd)[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 54, in getstatusoutput
text = pipe.read()
IOError: [Errno 4] Interrupted system call
----------------------------------------------------------------------
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/dtexample.py",
line 52, in IPython.testing.plugin.dtexample.ipfunc
Failed example:
_ip.system("rm -f /tmp/foo")
Exception raised:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1212, in __run
compileflags, 1) in test.globs
File "<doctest IPython.testing.plugin.dtexample.ipfunc[6]>",
line 1, in <module>
_ip.system("rm -f /tmp/foo")
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/ipdoctest.py",
line 137, in xsys
sys.stdout.write(commands.getoutput(cmd))
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 44, in getoutput
return getstatusoutput(cmd)[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 54, in getstatusoutput
text = pipe.read()
IOError: [Errno 4] Interrupted system call
>> raise self.failureException(self.format_failure(<StringIO.StringIO instance at 0x4a36f58>.getvalue()))
======================================================================
FAIL: Doctest: test_exampleip.txt
----------------------------------------------------------------------
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 2112, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for test_exampleip.txt
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/test_exampleip.txt",
line 0
----------------------------------------------------------------------
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/test_exampleip.txt",
line 29, in test_exampleip.txt
Failed example:
_ip.system("echo $a")
Exception raised:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1212, in __run
compileflags, 1) in test.globs
File "<doctest test_exampleip.txt[5]>", line 1, in <module>
_ip.system("echo $a")
File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/testing/plugin/ipdoctest.py",
line 137, in xsys
sys.stdout.write(commands.getoutput(cmd))
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 44, in getoutput
return getstatusoutput(cmd)[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/commands.py",
line 54, in getstatusoutput
text = pipe.read()
IOError: [Errno 4] Interrupted system call
>> raise self.failureException(self.format_failure(<StringIO.StringIO instance at 0x4a1d9b8>.getvalue()))
----------------------------------------------------------------------
Ran 515 tests in 57.113s
FAILED (SKIP=11, errors=3, failures=2)
Deleting object: second_pass
object A deleted
deleting object...
More information about the IPython-dev
mailing list