New submission from Arfrever Frehtes Taifersar Arahesis: test.test_pickle.CompatPickleTests.test_exceptions() test introduced in revision 8d86dfe53b97 (in Python >=3.4) fails with --without-threads, because it unconditionally imports multiprocessing module, which is known to not work with --without-threads. The last part of this test should probably be skipped when import of multiprocessing fails.
====================================================================== ERROR: test_exceptions (test.test_pickle.CompatPickleTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/cpython/Lib/test/test_pickle.py", line 383, in test_exceptions import multiprocessing.context File "/tmp/cpython/Lib/multiprocessing/__init__.py", line 16, in <module> from . import context File "/tmp/cpython/Lib/multiprocessing/context.py", line 3, in <module> import threading File "/tmp/cpython/Lib/threading.py", line 4, in <module> import _thread ImportError: No module named '_thread' ---------------------------------------------------------------------- ---------- components: Tests messages: 252722 nosy: Arfrever, alexandre.vassalotti, pitrou, serhiy.storchaka priority: normal severity: normal status: open title: test_pickle fails with --without-threads versions: Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25365> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com