This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_pickle fails with --without-threads
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.6, Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: Arfrever, alexandre.vassalotti, pitrou, python-dev, serhiy.storchaka
Priority: normal Keywords:

Created on 2015-10-10 16:01 by Arfrever, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg252722 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2015-10-10 16:01
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'

----------------------------------------------------------------------
msg252731 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-10-10 17:12
New changeset 1cb9ce2d83d8 by Serhiy Storchaka in branch '3.4':
Issue #25365: test_pickle now works in threads disabled builds.
https://hg.python.org/cpython/rev/1cb9ce2d83d8

New changeset 48cb00431ce6 by Serhiy Storchaka in branch '3.5':
Issue #25365: test_pickle now works in threads disabled builds.
https://hg.python.org/cpython/rev/48cb00431ce6

New changeset 655fd1e9b444 by Serhiy Storchaka in branch 'default':
Issue #25365: test_pickle now works in threads disabled builds.
https://hg.python.org/cpython/rev/655fd1e9b444
msg252733 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-10-10 17:29
Thank you for your report Arfrever.
History
Date User Action Args
2022-04-11 14:58:22adminsetgithub: 69552
2015-10-10 17:29:38serhiy.storchakasetstatus: open -> closed
type: behavior
messages: + msg252733

resolution: fixed
stage: resolved
2015-10-10 17:12:43python-devsetnosy: + python-dev
messages: + msg252731
2015-10-10 16:12:27serhiy.storchakasetassignee: serhiy.storchaka
2015-10-10 16:01:35Arfrevercreate