[Python-Dev] testing in a Python --without-threads build

Bill Janssen janssen at parc.com
Sat Sep 8 21:19:26 CEST 2007

> I can't seem to run the regression tests in a --without-threads build.
> Might be interesting to configure a buildbot this way to keep
> ourselves honest.

Because regrtest.py was importing test_socket_ssl without catching the
ImportError exception:

% ./python.exe ./Lib/test/regrtest.py test_socket_ssl
test_socket_ssl skipped -- No module named thread
1 test skipped:
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 1190, in <module>
  File "./Lib/test/regrtest.py", line 416, in main
    e = _ExpectedSkips()
  File "./Lib/test/regrtest.py", line 1111, in __init__
    from test import test_socket_ssl
  File "/local/python/trunk/src/Lib/test/test_socket_ssl.py", line 8, in <module>
    import threading
  File "/local/python/trunk/src/Lib/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread

So, is this an "expected skip" or not?


More information about the Python-Dev mailing list