[IPython-dev] How to add tests in IPython/external

Jörgen Stenarson jorgen.stenarson at bostream.nu
Tue Jul 12 14:00:35 EDT 2011


Hi,

I'm considering adding some tests to Itpl in IPython/external to 
investigate unicode issues in that module. But after adding a tests 
submodule in the Itpl directory I can't run those tests because nose 
crashes when it can't import pexepct. Any ideas on how to solve this?

C:\python\external> python ipython-js\IPython\scripts\iptest 
IPython.external -v

Failure: ImportError (No module named resource

A critical module was not found. Probably this operating system does not
support it. Pexpect is intended for UNIX-like operating systems.) ... ERROR

======================================================================
ERROR: Failure: ImportError (No module named resource

A critical module was not found. Probably this operating system does not
support it. Pexpect is intended for UNIX-like operating systems.)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "c:\python26\lib\site-packages\nose\loader.py", line 390, in 
loadTestsFro
mName
     addr.filename, addr.module)
   File "c:\python26\lib\site-packages\nose\importer.py", line 39, in 
importFromP
ath
     return self.importFromDir(dir_path, fqname)
   File "c:\python26\lib\site-packages\nose\importer.py", line 86, in 
importFromD
ir
     mod = load_module(part_fqname, fh, filename, desc)
   File 
"c:\python\external\ipython-js\IPython\external\pexpect\__init__.py", lin
e 5, in <module>
     from _pexpect import *
   File 
"c:\python\external\ipython-js\IPython\external\pexpect\_pexpect.py", lin
e 84, in <module>
     support it. Pexpect is intended for UNIX-like operating systems.""")
ImportError: No module named resource

A critical module was not found. Probably this operating system does not
support it. Pexpect is intended for UNIX-like operating systems.

----------------------------------------------------------------------
Ran 1 test in 0.003s



More information about the IPython-dev mailing list