Make skip in test_thread_pool os-agnostic

This commit is contained in:
Padraic Fanning
2026-01-10 13:22:21 -05:00
parent ae6deb7437
commit 1c07d3545e
2 changed files with 3 additions and 2 deletions

View File

@@ -111,6 +111,7 @@ env:
test_ssl
test_threading
ENV_POLLUTING_TESTS_LINUX: >-
test.test_concurrent_futures.test_thread_pool
test.test_multiprocessing_fork.test_processes
test.test_multiprocessing_fork.test_threads
test.test_multiprocessing_forkserver.test_processes

View File

@@ -68,8 +68,8 @@ class ThreadPoolExecutorTest(ThreadPoolMixin, ExecutorTest, BaseTestCase):
import sys # TODO: RUSTPYTHON
@unittest.skipIf(
sys.platform == 'darwin' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ,
'TODO: RUSTPYTHON, TODO: RUSTPYTHON environment pollution when running rustpython -m test --fail-env-changed due to unknown reason'
'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ,
'TODO: RUSTPYTHON environment pollution when running rustpython -m test --fail-env-changed due to unknown reason'
)
@support.requires_fork()
@unittest.skipUnless(hasattr(os, 'register_at_fork'), 'need os.register_at_fork')