[IPython-dev] Running tests

Jörgen Stenarson jorgen.stenarson@bostream...
Mon Jan 11 13:36:40 CST 2010


Fernando Perez skrev 2010-01-10 02:45:
> On Sat, Jan 9, 2010 at 7:01 AM, Jörgen Stenarson
> <jorgen.stenarson@bostream.nu>  wrote:
>> This does not seem to work on windows. I just made a branch of your
>> trunk-dev branch and tried to run the tests. You can see the results below.
>> In case your swedish is a bit rusty;-) it complains that iptest is not a
>> command or batchfile.
>>
>> Any ideas on what to do?
>>
>
> Could you try updating?  I've done a ton of work today on the test
> suite, and my last commit makes the pretty.py extension tests run and
> pass on my system:
>
> maqroll[scripts]>  ./iptest IPython.extensions
> ----------------------------------------------------------------------
> Ran 4 tests in 0.475s
>
> OK
>
> Let me know if it works any better for you... If it does, use
> pretty.py and test_pretty as references.
>
> Cheers,
>
> f
>
I often run IPython/testing/iptest.py as a script but this is not 
possible now due to a relative import:

C:\python\external\ipython-perez\IPython>python testing\iptest.py
Traceback (most recent call last):
   File "testing\iptest.py", line 39, in <module>
     from . import globalipapp
ValueError: Attempted relative import in non-package

Using my usual trick of just adding a py extension to iptest in 
python26/Scripts so I can use iptest at the prompt I get a similar 
failure when trying to run all tests. It looks like iptest tries to 
launch a new iptest for every test group.


/Jörgen

C:\python\external\ipython-perez\IPython>iptest
*****************************************************************************
IPython test group: IPython.utils
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory
*****************************************************************************
IPython test group: IPython.scripts
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory
*****************************************************************************
IPython test group: IPython.lib
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory
*****************************************************************************
IPython test group: IPython.frontend
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory
*****************************************************************************
IPython test group: IPython.extensions
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory
*****************************************************************************
IPython test group: IPython.core
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory
*****************************************************************************
IPython test group: IPython.config
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory
*****************************************************************************
IPython test group: IPython.testing
python: can't open file 
'C:\Python26\lib\site-packages\IPython\scripts\iptest':
[Errno 2] No such file or directory

*****************************************************************************
Ran 8 test groups in 2.860s

ERROR - 8 out of 8 test groups failed.
----------------------------------------
Runner failed: IPython.lib
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v IPython.lib

----------------------------------------
Runner failed: IPython.scripts
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v 
IPython.scripts

----------------------------------------
Runner failed: IPython.utils
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v IPython.utils

----------------------------------------
Runner failed: IPython.frontend
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v 
IPython.frontend

----------------------------------------
Runner failed: IPython.extensions
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v 
IPython.extension
s

----------------------------------------
Runner failed: IPython.core
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v IPython.core

----------------------------------------
Runner failed: IPython.config
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v 
IPython.config

----------------------------------------
Runner failed: IPython.testing
You may wish to rerun this one individually, with:
python C:\Python26\lib\site-packages\IPython\scripts\iptest -v 
IPython.testing




/Jörgen


More information about the IPython-dev mailing list