Testsuite crash on python 2.4 due to syntax error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Fix Released
|
Critical
|
Brian Granger |
Bug Description
There is invalid python 2.4 syntax in the test suite.
SS.....
=======
ERROR: Failure: SyntaxError ('yield' not allowed in a 'try' block with a 'finally' clause (test_iplib.py, line 64))
-------
Traceback (most recent call last):
File "c:\python24\
module = self.importer.
File "c:\python24\
return self.importFrom
File "c:\python24\
mod = load_module(
File "c:\python24\
yield user_setup, (tmpdir,''), kw
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
=======
FAIL: Test that object's __del__ methods are called on exit.
-------
Traceback (most recent call last):
File "c:\python24\
self.
File "c:\python24\
nt.
AssertionError: '' != 'obj_del.py: object A deleted'
>> raise self.failureExc
(None or '%r != %r' % ('', 'obj_del.py: object A deleted'))
-------
Ran 53 tests in 0.532s
FAILED (SKIP=19, errors=1, failures=1)
Related branches
- Fernando Perez: Needs Fixing
- Diff: None lines
Changed in ipython: | |
importance: | Undecided → Critical |
milestone: | none → 0.10 |
status: | New → Confirmed |
Changed in ipython: | |
status: | Fix Committed → Fix Released |
On another computer with nose 0.11-dev I got a slightly different behaviour on this bug. The second Failure on __del__ methods only occured when printing something in ipy_user_conf.py
Python 2.4 incompatibilty
C:\python\ external\ ipython\ IPython\ tests>python ..\..\scripts\ iptest ......SSSSSSSSS SS.S... S...... ....... .....E. .....SSS ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- lib\site- packages\ nose-0. 11.0.dev_ r0-py2. 4.egg\nose\ loader. py", line 363, in loa importFromPath( lib\site- packages\ nose-0. 11.0.dev_ r0-py2. 4.egg\nose\ importer. py", line 39, in im Dir(dir_ path, fqname) lib\site- packages\ nose-0. 11.0.dev_ r0-py2. 4.egg\nose\ importer. py", line 84, in im part_fqname, fh, filename, desc) external\ ipython\ IPython\ tests\test_ iplib.py" , line 64
SS.....
=======
ERROR: Failure: SyntaxError ('yield' not allowed in a 'try' block with a 'finally' clause (test_ipli
b.py, line 64))
-------
Traceback (most recent call last):
File "C:\Python24\
dTestsFromName
module = self.importer.
File "C:\Python24\
portFromPath
return self.importFrom
File "C:\Python24\
portFromDir
mod = load_module(
File "c:\python\
yield user_setup, (tmpdir,''), kw
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 55 tests in 4.189s
FAILED (SKIP=18, errors=1)
Traceback when printing something in ipy_user_conf
C:\python\ external\ ipython\ IPython\ tests>python ..\..\scripts\ iptest ......SSSSSSSSS SS.S... S...... ....... .....E. F....SSS ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- lib\site- packages\ nose-0. 11.0.dev_ r0-py2. 4.egg\nose\ loader. py", line 363, in loa importFromPath( lib\site- packages\ nose-0. 11.0.dev_ r0-py2. 4.egg\nose\ importer. py", line 39, in im Dir(dir_ path, fqname) lib\site- packages\ nose-0. 11.0.dev_ r0-py2. 4.egg\nose\ importer. py", line 84, in im part_fqname, fh, filename, desc) external\ ipython\ IPython\ tests\test_ iplib.py" , line 64
printed in ipy_user_conf
SS.....
=======
ERROR: Failure: SyntaxError ('yield' not allowed in a 'try' block with a 'finally' clause (test_ipli
b.py, line 64))
-------
Traceback (most recent call last):
File "C:\Python24\
dTestsFromName
module = self.importer.
File "C:\Python24\
portFromPath
return self.importFrom
File "C:\Python24\
portFromDir
mod = load_module(
File "c:\python\
yield user_setup, (tmpdir,''), kw
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- lib\site- packages\ nose-0. 11.0.dev_ r0-py2. 4.egg\nose\ case.py" , line 182, in runTe test(*self. arg) external\ ipython\ IPython\ tests\test_ magic.py" , line 86, in test_obj_del assert_ equals( out,'obj_ del.py: object A deleted') conf\nobj_ del.py: object A deleted'...
FAIL: Test that object's __del__ methods are called on exit.
-------
Traceback (most recent call last):
File "C:\Python24\
st
self.
File "c:\python\
nt.
AssertionError: 'printed in ipy_user_