Skip to content

./python.exe -OO -m test test_concurrent_futures fails #136434

Closed
@sobolevn

Description

@sobolevn

Bug report

This happens because -OO mode is not handled. I have a PR ready.

Output:

» ./python.exe -OO -m test test_concurrent_futures     
Using random seed: 2576397461
0:00:00 load avg: 2.18 Run 9 tests sequentially in a single process
0:00:00 load avg: 2.18 [1/9] test_concurrent_futures.test_as_completed
test test_concurrent_futures.test_as_completed crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_as_completed.py", line 11, in <module>
    from .util import (
    ...<2 lines>...
        create_future, create_executor_tests, setup_module)
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [1/9/1] test_concurrent_futures.test_as_completed failed (uncaught exception)
0:00:00 load avg: 2.18 [2/9/1] test_concurrent_futures.test_deadlock
test test_concurrent_futures.test_deadlock crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_deadlock.py", line 14, in <module>
    from .util import (
        create_executor_tests, setup_module,
        ProcessPoolForkMixin, ProcessPoolForkserverMixin, ProcessPoolSpawnMixin)
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [2/9/2] test_concurrent_futures.test_deadlock failed (uncaught exception)
0:00:00 load avg: 2.18 [3/9/2] test_concurrent_futures.test_future
test test_concurrent_futures.test_future crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_future.py", line 11, in <module>
    from .util import (
    ...<2 lines>...
        BaseTestCase, create_future, setup_module)
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [3/9/3] test_concurrent_futures.test_future failed (uncaught exception)
0:00:00 load avg: 2.18 [4/9/3] test_concurrent_futures.test_init
test test_concurrent_futures.test_init crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_init.py", line 15, in <module>
    from .util import ExecutorMixin, create_executor_tests, setup_module
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [4/9/4] test_concurrent_futures.test_init failed (uncaught exception)
0:00:00 load avg: 2.18 [5/9/4] test_concurrent_futures.test_interpreter_pool
test test_concurrent_futures.test_interpreter_pool crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_interpreter_pool.py", line 10, in <module>
    from concurrent.futures.interpreter import BrokenInterpreterPool
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [5/9/5] test_concurrent_futures.test_interpreter_pool failed (uncaught exception)
0:00:00 load avg: 2.18 [6/9/5] test_concurrent_futures.test_process_pool
test test_concurrent_futures.test_process_pool crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_process_pool.py", line 16, in <module>
    from .util import (
        ProcessPoolForkMixin, ProcessPoolForkserverMixin, ProcessPoolSpawnMixin,
        create_executor_tests, setup_module)
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [6/9/6] test_concurrent_futures.test_process_pool failed (uncaught exception)
0:00:00 load avg: 2.18 [7/9/6] test_concurrent_futures.test_shutdown
test test_concurrent_futures.test_shutdown crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_shutdown.py", line 11, in <module>
    from .util import (
    ...<2 lines>...
        create_executor_tests, setup_module)
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [7/9/7] test_concurrent_futures.test_shutdown failed (uncaught exception)
0:00:00 load avg: 2.18 [8/9/7] test_concurrent_futures.test_thread_pool
test test_concurrent_futures.test_thread_pool crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_thread_pool.py", line 12, in <module>
    from .util import BaseTestCase, ThreadPoolMixin, setup_module
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [8/9/8] test_concurrent_futures.test_thread_pool failed (uncaught exception)
0:00:00 load avg: 2.18 [9/9/8] test_concurrent_futures.test_wait
test test_concurrent_futures.test_wait crashed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 210, in _runtest_env_changed_exc
    _load_run_test(result, runtests)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/test/libregrtest/single.py", line 155, in _load_run_test
    test_mod = importlib.import_module(module_name)
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 762, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/test_wait.py", line 8, in <module>
    from .util import (
    ...<4 lines>...
        ProcessPoolForkMixin, ProcessPoolForkserverMixin, ProcessPoolSpawnMixin)
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 87, in <module>
    class InterpreterPoolMixin(ExecutorMixin):
    ...<3 lines>...
            self.skipTest("InterpreterPoolExecutor doesn't support events")
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_concurrent_futures/util.py", line 88, in InterpreterPoolMixin
    executor_type = futures.InterpreterPoolExecutor
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/__init__.py", line 62, in __getattr__
    from .interpreter import InterpreterPoolExecutor
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/futures/interpreter.py", line 3, in <module>
    from concurrent import interpreters
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/__init__.py", line 12, in <module>
    from ._queues import (
    ...<2 lines>...
    )
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_queues.py", line 49, in <module>
    UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
  File "/Users/sobolev/Desktop/cpython/Lib/concurrent/interpreters/_crossinterp.py", line 43, in singleton
    doc = cls.__doc__.replace('cross-interpreter container', kind)
          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

0:00:00 load avg: 2.18 [9/9/9] test_concurrent_futures.test_wait failed (uncaught exception)

== Tests result: FAILURE ==

9 tests failed:
    test_concurrent_futures.test_as_completed
    test_concurrent_futures.test_deadlock
    test_concurrent_futures.test_future
    test_concurrent_futures.test_init
    test_concurrent_futures.test_interpreter_pool
    test_concurrent_futures.test_process_pool
    test_concurrent_futures.test_shutdown
    test_concurrent_futures.test_thread_pool
    test_concurrent_futures.test_wait

Total duration: 213 ms
Total tests: run=0
Total test files: run=9/9 failed=9
Result: FAILURE

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy