Skip certain problematic tests in test_threading

This commit is contained in:
Padraic Fanning
2026-01-04 22:47:53 -05:00
parent d170b0281f
commit b76c0a20a8
2 changed files with 11 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ env:
test.test_multiprocessing_spawn.test_threads
test_file_eintr
test_subprocess
test_threading
ENV_POLLUTING_TESTS_MACOS: >-
test.test_multiprocessing_forkserver.test_processes
test.test_multiprocessing_forkserver.test_threads

View File

@@ -875,6 +875,10 @@ class ThreadTests(BaseTestCase):
finally:
threading.settrace(old_trace)
@unittest.skipIf(
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ,
"TODO: RUSTPYTHON environment pollution when running rustpython -m test --fail-env-changed due to unknown reason"
)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_gettrace_all_threads(self):
@@ -915,6 +919,10 @@ class ThreadTests(BaseTestCase):
finally:
threading.setprofile(old_profile)
@unittest.skipIf(
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ,
"TODO: RUSTPYTHON environment pollution when running rustpython -m test --fail-env-changed due to unknown reason"
)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_getprofile_all_threads(self):
@@ -1203,6 +1211,7 @@ class ThreadJoinOnShutdown(BaseTestCase):
for t in threads:
t.join()
@unittest.skip('TODO: RUSTPYTHON FAILURE, WORKER BUG')
@support.requires_fork()
# TODO: RUSTPYTHON
@unittest.expectedFailure
@@ -1528,6 +1537,7 @@ class ExceptHookTests(BaseTestCase):
restore_default_excepthook(self)
super().setUp()
@unittest.skip('TODO: RUSTPYTHON, flaky')
def test_excepthook(self):
with support.captured_output("stderr") as stderr:
thread = ThreadRunFail(name="excepthook thread")