Python 2.2.1 on Win prob?

Tim Peters tim.one at comcast.net
Fri Apr 12 23:31:03 EDT 2002


[Tim H]
> On a Windows 2000 SP2 machine with the newly installed Python 2.2.1:
>
> python -c"from test import testall"
>
> the last two lines read:
>
> 1 skip unexpected on win32:
>     test_threaded_import
>
> Something to worry about?

No.  A few of the tests have to be skipped if you try to run them as a side
effect of importing something else, and test_threaded_import is one of
those.  As the comment at the top of test/testall.py says,

# Backward compatibility -- you should use regrtest instead of this module.

Here are two other ways of running test_threaded_import, and these should
work for you:

C:\Python22>python lib/test/test_threaded_import.py
Trying 20 threads ... OK.
Trying 50 threads ... OK.
Trying 20 threads ... OK.
Trying 50 threads ... OK.
Trying 20 threads ... OK.
Trying 50 threads ... OK.

C:\Python22>python lib/test/regrtest.py test_threaded_import
test_threaded_import
1 test OK.

C:\Python22>

The *intended* way to run the full test suite is via

python lib/test/regrtest.py






More information about the Python-list mailing list