mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix multiprocessing tests on Darwin
This commit is contained in:
@@ -4,9 +4,15 @@ from test._test_multiprocessing import install_tests_in_module_dict
|
||||
install_tests_in_module_dict(globals(), 'forkserver', only_type="processes")
|
||||
|
||||
import os, sys # TODO: RUSTPYTHON
|
||||
class WithProcessesTestCondition(WithProcessesTestCondition): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf(sys.platform == 'darwin', 'TODO: RUSTPYTHON flaky timeout')
|
||||
def test_notify(self): super().test_notify()
|
||||
@unittest.skipIf(sys.platform == 'darwin', 'TODO: RUSTPYTHON flaky timeout')
|
||||
def test_notify(self): super().test_notify_n()
|
||||
|
||||
class WithProcessesTestLock(WithProcessesTestLock): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
'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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_repr_lock(self): super().test_repr_lock() # TODO: RUSTPYTHON
|
||||
@@ -18,17 +24,17 @@ class WithProcessesTestLock(WithProcessesTestLock): # TODO: RUSTPYTHON
|
||||
|
||||
class WithProcessesTestPool(WithProcessesTestPool): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
'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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_async_timeout(self): super().test_async_timeout() # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
'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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_terminate(self): super().test_terminate() # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
'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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_traceback(self): super().test_traceback() # TODO: RUSTPYTHON
|
||||
|
||||
@@ -3,10 +3,10 @@ from test._test_multiprocessing import install_tests_in_module_dict
|
||||
|
||||
install_tests_in_module_dict(globals(), 'forkserver', only_type="threads")
|
||||
|
||||
import os, sys # TODO: RUSTPYTHON
|
||||
import os # TODO: RUSTPYTHON
|
||||
class WithThreadsTestPool(WithThreadsTestPool): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
'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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_terminate(self): super().test_terminate() # TODO: RUSTPYTHON
|
||||
|
||||
@@ -4,9 +4,13 @@ from test._test_multiprocessing import install_tests_in_module_dict
|
||||
install_tests_in_module_dict(globals(), 'spawn', only_type="processes")
|
||||
|
||||
import os, sys # TODO: RUSTPYTHON
|
||||
class WithProcessesTestCondition(WithProcessesTestCondition): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf(sys.platform == 'darwin', 'TODO: RUSTPYTHON flaky timeout')
|
||||
def test_notify(self): super().test_notify()
|
||||
|
||||
class WithProcessesTestLock(WithProcessesTestLock): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
sys.platform in ('darwin', 'linux') 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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_repr_lock(self): super().test_repr_lock() # TODO: RUSTPYTHON
|
||||
@@ -18,17 +22,17 @@ class WithProcessesTestLock(WithProcessesTestLock): # TODO: RUSTPYTHON
|
||||
|
||||
class WithProcessesTestPool(WithProcessesTestPool): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
sys.platform in ('darwin', 'linux') 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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_async_timeout(self): super().test_async_timeout() # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
sys.platform in ('darwin', 'linux') 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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_terminate(self): super().test_terminate() # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
sys.platform in ('darwin', 'linux') 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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_traceback(self): super().test_traceback() # TODO: RUSTPYTHON
|
||||
|
||||
@@ -6,7 +6,7 @@ install_tests_in_module_dict(globals(), 'spawn', only_type="threads")
|
||||
import os, sys # TODO: RUSTPYTHON
|
||||
class WithThreadsTestPool(WithThreadsTestPool): # TODO: RUSTPYTHON
|
||||
@unittest.skipIf( # TODO: RUSTPYTHON
|
||||
sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, # TODO: RUSTPYTHON
|
||||
sys.platform in ('darwin', 'linux') 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'
|
||||
) # TODO: RUSTPYTHON
|
||||
def test_terminate(self): super().test_terminate() # TODO: RUSTPYTHON
|
||||
|
||||
Reference in New Issue
Block a user