Message401928
Minimum command to reproduce the issue (on Linux):
$ ./python -m test -m test.test_logging.LogRecordTest.test_multiprocessing test_genericalias test_logging test_multiprocessing_fork -v
(...)
0:00:00 load avg: 0.45 Run tests sequentially
0:00:00 load avg: 0.45 [1/3] test_genericalias
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
0:00:00 load avg: 0.49 [2/3] test_logging -- test_genericalias ran no tests
test_multiprocessing (test.test_logging.LogRecordTest) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.008s
OK
0:00:00 load avg: 0.49 [3/3] test_multiprocessing_fork
test test_multiprocessing_fork crashed -- Traceback (most recent call last):
File "/home/vstinner/python/main/Lib/test/libregrtest/runtest.py", line 340, in _runtest_inner
refleak = _runtest_inner2(ns, test_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/test/libregrtest/runtest.py", line 280, in _runtest_inner2
the_module = importlib.import_module(abstest)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1072, in _gcd_import
File "<frozen importlib._bootstrap>", line 1044, in _find_and_load
File "<frozen importlib._bootstrap>", line 1015, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 689, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 894, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/vstinner/python/main/Lib/test/test_multiprocessing_fork.py", line 2, in <module>
import test._test_multiprocessing
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/test/_test_multiprocessing.py", line 5374, in <module>
class TestSyncManagerTypes(unittest.TestCase):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/test/_test_multiprocessing.py", line 5396, in TestSyncManagerTypes
manager_class = multiprocessing.managers.SyncManager
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'multiprocessing' has no attribute 'managers'
test_multiprocessing_fork failed (uncaught exception)
(...) |
|
Date |
User |
Action |
Args |
2021-09-16 08:17:26 | vstinner | set | recipients:
+ vstinner, lukasz.langa, pablogsal, Alexander Kanavin, sobolevn |
2021-09-16 08:17:26 | vstinner | set | messageid: <1631780246.11.0.457493536992.issue45128@roundup.psfhosted.org> |
2021-09-16 08:17:26 | vstinner | link | issue45128 messages |
2021-09-16 08:17:25 | vstinner | create | |
|