Ticket #215 (new defect)

Opened 8 months ago

IPython tests are broken

Reported by: stefanv Assigned to: fperez
Priority: normal Milestone: 0.9.0
Component: ipython Version:
Severity: normal Keywords:
Cc:

Description

$ ipython runtests.py

/home/stefan/lib/python2.5/site-packages/IPython/iplib.pyc in handle_normal(self, line_info)
   2281             line = ''
   2282 
-> 2283         self.log(line,line,continue_prompt)
   2284         return line
   2285 

AttributeError: 'InteractiveShell' object has no attribute 'log'
WARNING: Failure executing file: <runtests.py>
In [1]: run runtests.py

[...]

------> f2("a b c")
Out[0]: 'a b ca b c'

<IPython freezes>
$ ipython test_completer.py

---> 37 assert 'pprint' in l
AssertionError: 
WARNING: Failure executing file: <test_completer.py>

$ ipython test_handlers.py

51 tests run, 3 failures
Expected ' ! true' to become ' ! true', found ' _ip.system(" true")'
Expected ' !true' to become ' !true', found ' _ip.system("true")'
Expected 'if 1:\n    %lsmagic' to become 'if 1:\n    %lsmagic', found 'if 1:\n    _ip.magic("%lsmagic ")'
$ ipython test_shouldfail.ipy

NameError: name 'os' is not defined