[IPython-dev] correct test-suite

Thomas Spura tomspur@fedoraproject....
Tue Jul 27 01:25:12 CDT 2010


Am Mon, 26 Jul 2010 19:38:21 -0700
schrieb Fernando Perez <fperez.net@gmail.com>:

> On Mon, Jul 26, 2010 at 12:18 AM, Thomas Spura
> <tomspur@fedoraproject.org> wrote:
> > Here, they don't... That's why, I didn't look too closely to the
> > failing tests in my branches. I'll try to fix the failures in
> > current master on my side first, because it seems some other
> > dependencies are doing something wrong I guess...
> >
> 
> If you can't find it, show me the tracebacks and I may be able to help
> out.  We want the test suite to degrade gracefully by skipping if
> optional dependencies aren't met, not to fail.

I can't find it right now...

Some are failing, because of a deprecation warning in argparse (it
seems ipython imports my local installed one, and not the bundled one).
Updating the bundled one first and then fix the deprecation warning
would help quite a lot.

Here is the output:

$ /usr/bin/python /usr/lib/python2.6/site-packages/IPython/testing/iptest.py
IPython.core IPython.extensions
EEEEE.EEEEEEEE.................EE........................E.E.........E...SE....EEEE...FEFE.E.
======================================================================
ERROR: Failure: ImportError (cannot import name release)
----------------------------------------------------------------------
Traceback (most recent call last): File
"/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc) File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/application.py",
line 35, in <module> from IPython.core import release, crashhandler
ImportError: cannot import name release

======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute
'utils')
----------------------------------------------------------------------
Traceback (most recent call last): File
"/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc) File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/completer.py",
line 85, in <module> import IPython.utils.rlineimpl as readline
AttributeError: 'module' object has no attribute 'utils'

======================================================================
ERROR: Failure: ImportError (cannot import name ultratb)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/crashhandler.py",
line 26, in <module> from IPython.core import ultratb ImportError:
cannot import name ultratb

======================================================================
ERROR: Failure: ImportError (cannot import name ipapi)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/debugger.py",
line 33, in <module> from IPython.core import ipapi ImportError: cannot
import name ipapi

======================================================================
ERROR: Failure: ImportError (cannot import name ultratb)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/embed.py",
line 32, in <module> from IPython.core import ultratb ImportError:
cannot import name ultratb

======================================================================
ERROR: Failure: ImportError (cannot import name ipapi)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/history.py",
line 10, in <module> from IPython.core import ipapi ImportError: cannot
import name ipapi

======================================================================
ERROR: Failure: ImportError (cannot import name release)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/ipapp.py",
line 31, in <module> from IPython.core import release ImportError:
cannot import name release

======================================================================
ERROR: Failure: ImportError (cannot import name oinspect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/iplib.py",
line 34, in <module> from IPython.core import debugger, oinspect
ImportError: cannot import name oinspect

======================================================================
ERROR: Failure: ImportError (cannot import name oinspect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/magic.py",
line 50, in <module> from IPython.core import debugger, oinspect
ImportError: cannot import name oinspect

======================================================================
ERROR: Failure: ImportError (cannot import name release)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.6/site-packages/nose/importer.py", line 84, in
importFromDir mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/prompts.py",
line 22, in <module> from IPython.core import release ImportError:
cannot import name release

======================================================================
ERROR: Failure: AttributeError ('NoneType' object has no attribute
'user_ns')
----------------------------------------------------------------------
Traceback (most recent call last): File
"/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 86, in
importFromDir mod = load_module(part_fqname, fh, filename, desc) File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/refbug.py",
line 28, in <module> if not '_refbug_cache' in ip.user_ns:
AttributeError: 'NoneType' object has no attribute 'user_ns'

======================================================================
ERROR: Failure: IndexError (list index out of range)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line
148, in generate for r in result:
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 668, in loadTestsFromModule extraglobs=self.extraglobs) File
"/usr/lib64/python2.6/doctest.py", line 852, in find self._find(tests,
obj, name, module, source_lines, globs, {}) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 906, in _find globs, seen)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 894, in _find test =
self._get_test(obj, name, module, globs, source_lines) File
"/usr/lib64/python2.6/doctest.py", line 978, in _get_test filename,
lineno) File "/usr/lib64/python2.6/doctest.py", line 597, in get_doctest
    return DocTest(self.get_examples(string, name), globs,
  File "/usr/lib64/python2.6/doctest.py", line 611, in get_examples
    return [x for x in self.parse(string, name)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 450, in parse self._parse_example(m, name, lineno,ip2py) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 510, in _parse_example source = self.ip2py(source) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 382, in ip2py newline(_ip.prefilter(line,lnum>0)) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute
'utils')
----------------------------------------------------------------------
Traceback (most recent call last): File
"/usr/lib/python2.6/site-packages/nose/loader.py", line 382, in
loadTestsFromName addr.filename, addr.module) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 39, in
importFromPath return self.importFromDir(dir_path, fqname) File
"/usr/lib/python2.6/site-packages/nose/importer.py", line 86, in
importFromDir mod = load_module(part_fqname, fh, filename, desc) File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_completer.py",
line 14, in <module> from IPython.core import completer File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/completer.py",
line 85, in <module> import IPython.utils.rlineimpl as readline
AttributeError: 'module' object has no attribute 'utils'

======================================================================
ERROR: IPython.core.tests.test_handlers.test_handlers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in
runTest self.test(*self.arg)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_handlers.py",
line 74, in test_handlers ("top",
'get_ipython().system("d:/cygwin/top ")'), File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_handlers.py",
line 46, in run ip.runlines(pre) File
"/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line 2114, in
runlines self.push_line('\n') File
"/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback) File
"/usr/lib64/python2.6/contextlib.py", line 113, in nested yield vars
File "/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line
2102, in runlines prefiltered =
self.prefilter_manager.prefilter_lines(line,more) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: IPython.core.tests.test_imports.test_import_completer
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in
runTest self.test(*self.arg)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_imports.py",
line 5, in test_import_completer from IPython.core import completer
File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/completer.py",
line 85, in <module> import IPython.utils.rlineimpl as readline
AttributeError: 'module' object has no attribute 'utils'

======================================================================
ERROR: IPython.core.tests.test_iplib.test_runlines
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in
runTest self.test(*self.arg)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_iplib.py",
line 250, in test_runlines ip.runlines(['a = 10', 'a+=1']) File
"/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line 2114, in
runlines self.push_line('\n') File
"/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback) File
"/usr/lib64/python2.6/contextlib.py", line 113, in nested yield vars
  File "/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line
2102, in runlines prefiltered =
self.prefilter_manager.prefilter_lines(line,more) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: Failure: IndexError (list index out of range)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line
148, in generate for r in result:
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 668, in loadTestsFromModule extraglobs=self.extraglobs) File
"/usr/lib64/python2.6/doctest.py", line 852, in find self._find(tests,
obj, name, module, source_lines, globs, {}) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 906, in _find globs, seen)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 894, in _find test =
self._get_test(obj, name, module, globs, source_lines) File
"/usr/lib64/python2.6/doctest.py", line 978, in _get_test filename,
lineno) File "/usr/lib64/python2.6/doctest.py", line 597, in get_doctest
    return DocTest(self.get_examples(string, name), globs,
  File "/usr/lib64/python2.6/doctest.py", line 611, in get_examples
    return [x for x in self.parse(string, name)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 450, in parse self._parse_example(m, name, lineno,ip2py) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 510, in _parse_example source = self.ip2py(source) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 382, in ip2py newline(_ip.prefilter(line,lnum>0)) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: Failure: InvalidAliasError (The name sum can't be aliased
because it is a keyword or builtin.)
----------------------------------------------------------------------
Traceback (most recent call last): File
"/usr/lib/python2.6/site-packages/nose/loader.py", line 224, in
generate for test in g(): File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_magic.py",
line 32, in test_rehashx _ip.magic('rehashx') File
"/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line 1688, in
magic result = fn(magic_args) File
"/usr/lib/python2.6/site-packages/IPython/core/magic.py", line 2773, in
magic_rehashx ff.replace('.',''), ff) File
"/usr/lib/python2.6/site-packages/IPython/core/alias.py", line 161, in
define_alias nargs = self.validate_alias(name, cmd) File
"/usr/lib/python2.6/site-packages/IPython/core/alias.py", line 172, in
validate_alias "because it is a keyword or builtin." % name)
InvalidAliasError: The name sum can't be aliased because it is a
keyword or builtin.

======================================================================
ERROR: IPython.core.tests.test_magic.test_time
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in
runTest self.test(*self.arg)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_magic.py",
line 260, in test_time _ip.magic('time None') File
"/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line 1689, in
magic return result File "/usr/lib64/python2.6/contextlib.py", line 34,
in __exit__ self.gen.throw(type, value, traceback)
  File "/usr/lib64/python2.6/contextlib.py", line 113, in nested
    yield vars
  File "/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line
1688, in magic result = fn(magic_args)
  File "/usr/lib/python2.6/site-packages/IPython/core/magic.py", line
2026, in magic_time expr = self.shell.prefilter(parameter_s,False)
  File "/usr/lib/python2.6/site-packages/IPython/core/prefilter.py",
line 439, in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: Failure: IndexError (list index out of range)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line
148, in generate for r in result:
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 668, in loadTestsFromModule extraglobs=self.extraglobs) File
"/usr/lib64/python2.6/doctest.py", line 852, in find self._find(tests,
obj, name, module, source_lines, globs, {}) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 906, in _find globs, seen)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 894, in _find test =
self._get_test(obj, name, module, globs, source_lines) File
"/usr/lib64/python2.6/doctest.py", line 978, in _get_test filename,
lineno) File "/usr/lib64/python2.6/doctest.py", line 597, in get_doctest
    return DocTest(self.get_examples(string, name), globs,
  File "/usr/lib64/python2.6/doctest.py", line 611, in get_examples
    return [x for x in self.parse(string, name)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 450, in parse self._parse_example(m, name, lineno,ip2py) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 510, in _parse_example source = self.ip2py(source) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 382, in ip2py newline(_ip.prefilter(line,lnum>0)) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: See https://bugs.launchpad.net/ipython/+bug/315706
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/IPython/testing/_paramtestpy2.py",
line 53, in run_parametric testgen.next() File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_prefilter.py",
line 45, in test_autocall_binops yield nt.assert_equals(ip.prefilter('f
1'),'f(1)') File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range -------------------- >> begin captured stdout
<< --------------------- Automatic calling is: Full Automatic calling
is: OFF

--------------------- >> end captured stdout << ----------------------

======================================================================
ERROR: Check that multiline string literals don't expand as magic
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/IPython/testing/_paramtestpy2.py",
line 53, in run_parametric testgen.next() File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_prefilter.py",
line 66, in test_issue114 yield nt.assert_equals(ip.prefilter(raw),
raw) File "/usr/lib/python2.6/site-packages/IPython/core/prefilter.py",
line 437, in prefilter_lines for lnum, line in enumerate(llines) ])
File "/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line
380, in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: Test user input conversions
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/IPython/testing/_paramtestpy2.py",
line 53, in run_parametric testgen.next() File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_prefilter.py",
line 36, in test_prefilter yield nt.assert_equals(ip.prefilter(raw),
correct) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: Test that simple class definitions work.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in
runTest self.test(*self.arg)
  File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_run.py",
line 137, in test_simpledef _ip.runlines('t = isinstance(f(), foo)')
File "/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line
2114, in runlines self.push_line('\n') File
"/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback) File
"/usr/lib64/python2.6/contextlib.py", line 113, in nested yield vars
  File "/usr/lib/python2.6/site-packages/IPython/core/iplib.py", line
2102, in runlines prefiltered =
self.prefilter_manager.prefilter_lines(line,more) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR: Failure: IndexError (list index out of range)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line
148, in generate for r in result:
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 668, in loadTestsFromModule extraglobs=self.extraglobs) File
"/usr/lib64/python2.6/doctest.py", line 852, in find self._find(tests,
obj, name, module, source_lines, globs, {}) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 906, in _find globs, seen)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 128, in _find source_lines, globs, seen) File
"/usr/lib64/python2.6/doctest.py", line 894, in _find test =
self._get_test(obj, name, module, globs, source_lines) File
"/usr/lib64/python2.6/doctest.py", line 978, in _get_test filename,
lineno) File "/usr/lib64/python2.6/doctest.py", line 597, in get_doctest
    return DocTest(self.get_examples(string, name), globs,
  File "/usr/lib64/python2.6/doctest.py", line 611, in get_examples
    return [x for x in self.parse(string, name)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 450, in parse self._parse_example(m, name, lineno,ip2py) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 510, in _parse_example source = self.ip2py(source) File
"/usr/lib/python2.6/site-packages/IPython/testing/plugin/ipdoctest.py",
line 382, in ip2py newline(_ip.prefilter(line,lnum>0)) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 439,
in prefilter_lines out = self.prefilter_line(llines[0],
continue_prompt) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 380,
in prefilter_line self.shell._last_input_line = line File
"/usr/lib/python2.6/site-packages/IPython/utils/autoattr.py", line 129,
in __get__ val = self.getter(obj) File
"/usr/lib/python2.6/site-packages/IPython/core/prefilter.py", line 224,
in shell klass='IPython.core.iplib.InteractiveShell')[0] IndexError:
list index out of range

======================================================================
ERROR:
IPython.extensions.tests.test_pretty.TestPrettyInteractively.test_printers
----------------------------------------------------------------------
Traceback (most recent call last): File
"/usr/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
self.test(*self.arg) File
"/usr/lib/python2.6/site-packages/IPython/testing/decorators.py", line
225, in skipper_func return f(*args, **kwargs) File
"/home/tom/programming/repositories/github/ipython.git/IPython/extensions/tests/test_pretty.py",
line 101, in test_printers tt.ipexec_validate(self.fname, ipy_out) File
"/usr/lib/python2.6/site-packages/IPython/testing/tools.py", line 250,
in ipexec_validate (fname, err)) ValueError: Running file
'/tmp/tmpv7BI33.ipy' produced error:
"---------------------------------------------------------------------------\nAttributeError
Traceback (most recent call
last)\n\n/home/tom/programming/repositories/github/ipython.git/<ipython
console> in <module>()\n\nAttributeError: 'NoneType' object has no
console> attribute 'for_type'"

======================================================================
FAIL: Test that object's __del__ methods are called on exit.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in
runTest self.test(*self.arg)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/decorators.py", line
225, in skipper_func return f(*args, **kwargs) File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_run.py",
line 155, in test_obj_del tt.ipexec_validate(self.fname, 'object A
deleted') File
"/usr/lib/python2.6/site-packages/IPython/testing/tools.py", line 252,
in ipexec_validate nt.assert_equals(out.strip(), expected_out.strip())
AssertionError: '\x1b[?1034hobject A deleted' != 'object A deleted'
>>  raise self.failureException, \
          (None or '%r != %r' % ('\x1b[?1034hobject A deleted', 'object
A deleted')) 

======================================================================
FAIL: IPython.core.tests.test_run.TestMagicRunSimple.test_tclass
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in
runTest self.test(*self.arg)
  File
"/usr/lib/python2.6/site-packages/IPython/testing/decorators.py", line
225, in skipper_func return f(*args, **kwargs) File
"/home/tom/programming/repositories/github/ipython.git/IPython/core/tests/test_run.py",
line 169, in test_tclass tt.ipexec_validate(self.fname, out) File
"/usr/lib/python2.6/site-packages/IPython/testing/tools.py", line 252,
in ipexec_validate nt.assert_equals(out.strip(), expected_out.strip())
AssertionError: "\x1b[?1034hARGV 1-: ['C-first']\nARGV 1-:
['C-second']\ntclass.py: deleting object: C-first" != "ARGV 1-:
['C-first']\nARGV 1-: ['C-second']\ntclass.py: deleting object: C-first"
>>  raise self.failureException, \
          (None or '%r != %r' % ("\x1b[?1034hARGV 1-: ['C-first']\nARGV
1-: ['C-second']\ntclass.py: deleting object: C-first", "ARGV 1-:
['C-first']\nARGV 1-: ['C-second']\ntclass.py: deleting object:
C-first")) 

----------------------------------------------------------------------
Ran 98 tests in 1.636s

FAILED (SKIP=1, errors=26, failures=2)

Do you see some quick fixes?

	Thomas


More information about the IPython-dev mailing list