[IPython-dev] Bug caused by commit 2ccc90d68ac01145ab97
Jörgen Stenarson
jorgen.stenarson at bostream.nu
Wed Mar 2 15:27:57 EST 2011
Thomas Kluyver skrev 2011-03-02 21:08:
> At present, any command containing non-ascii characters fails (at least
> for me). Can you test with my unicode issues branch:
>
The problem with non-ascii characters disappeared but there are some
test errors and failures, see below.
/Jörgen
======================================================================
ERROR: Failure: SyntaxError (Non-ASCII character '\xc5' in file
c:\python\extern
al\ipython-takluyver\IPython\core\tests\test_compilerop.py on line 55,
but no en
coding declared; see http://www.python.org/peps/pep-0263.html for
details (test_
compilerop.py, line 55))
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\loader.py", lin
e 379, in loadTestsFromName
addr.filename, addr.module)
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\importer.py", l
ine 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\importer.py", l
ine 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"c:\python\external\ipython-takluyver\IPython\core\tests\test_compilerop.
py", line 55
SyntaxError: Non-ASCII character '\xc5' in file
c:\python\external\ipython-taklu
yver\IPython\core\tests\test_compilerop.py on line 55, but no encoding
declared;
see http://www.python.org/peps/pep-0263.html for details
(test_compilerop.py, l
ine 55)
======================================================================
ERROR: Failure: SyntaxError (Non-ASCII character '\xc5' in file
c:\python\extern
al\ipython-takluyver\IPython\core\tests\test_history.py on line 33, but
no encod
ing declared; see http://www.python.org/peps/pep-0263.html for details
(test_his
tory.py, line 33))
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\loader.py", lin
e 379, in loadTestsFromName
addr.filename, addr.module)
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\importer.py", l
ine 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\importer.py", l
ine 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"c:\python\external\ipython-takluyver\IPython\core\tests\test_history.py"
, line 33
SyntaxError: Non-ASCII character '\xc5' in file
c:\python\external\ipython-taklu
yver\IPython\core\tests\test_history.py on line 33, but no encoding
declared; se
e http://www.python.org/peps/pep-0263.html for details (test_history.py,
line 33
)
======================================================================
FAIL: IPython.core.tests.test_completer.test_file_completions
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\case.py", line
183, in runTest
self.test(*self.arg)
File
"c:\python\external\ipython-takluyver\IPython\core\tests\test_completer.p
y", line 152, in test_file_completions
nt.assert_equal(c, names)
AssertionError: [] !=
['c:\\docume~1\\jstenar\\lokala~1\\temp\\tmpd8x4nk\\foo1',
'c:\\docume~1\\jstenar\\lokala~1\\temp\\tmpd8x4nk\\foo2']
>> raise self.failureException, \
(None or '%r != %r' % ([],
['c:\\docume~1\\jstenar\\lokala~1\\temp\\tm
pd8x4nk\\foo1', 'c:\\docume~1\\jstenar\\lokala~1\\temp\\tmpd8x4nk\\foo2']))
======================================================================
FAIL: Test various directory handling operations.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\case.py", line
183, in runTest
self.test(*self.arg)
File
"c:\python\external\ipython-takluyver\IPython\core\tests\test_magic.py",
line 293, in test_dirops
nt.assert_equal(curpath(), ipdir)
AssertionError: '/docume~1/jstenar/lokala~1/temp' != u'C:\\Documents and
Setting
s\\jstenar\\.ipython'
>> raise self.failureException, \
(None or '%r != %r' % ('/docume~1/jstenar/lokala~1/temp',
u'C:\\Docume
nts and Settings\\jstenar\\.ipython'))
-------------------- >> begin captured stdout << ---------------------
[Error 123] Felaktig syntax för filnamn, katalognamn eller volymetikett:
'"C:/Do
cuments and Settings/jstenar/.ipython"'
c:\docume~1\jstenar\lokala~1\temp
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 270 tests in 2.891s
FAILED (SKIP=3, errors=2, failures=2)
**********************************************************************
IPython test group: IPython.extensions
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
**********************************************************************
IPython test group: IPython.frontend
......
----------------------------------------------------------------------
Ran 6 tests in 0.063s
OK
**********************************************************************
IPython test group: IPython.lib
....E
======================================================================
ERROR: Failure: ImportError (No module named pexpect)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\loader.py", lin
e 379, in loadTestsFromName
addr.filename, addr.module)
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\importer.py", l
ine 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"C:\Python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\importer.py", l
ine 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"c:\python\external\ipython-takluyver\IPython\lib\tests\test_irunner.py",
line 15, in <module>
from IPython.lib import irunner
File "c:\python\external\ipython-takluyver\IPython\lib\irunner.py",
line 39, i
n <module>
import pexpect
ImportError: No module named pexpect
More information about the IPython-dev
mailing list