mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
This commit is contained in:
parent
e1abffca45
commit
8464fbc42e
42 changed files with 139 additions and 23 deletions
|
@ -412,6 +412,7 @@ class FaultHandlerTests(unittest.TestCase):
|
|||
finally:
|
||||
sys.stderr = orig_stderr
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_disabled_by_default(self):
|
||||
# By default, the module should be disabled
|
||||
code = "import faulthandler; print(faulthandler.is_enabled())"
|
||||
|
@ -420,6 +421,7 @@ class FaultHandlerTests(unittest.TestCase):
|
|||
output = subprocess.check_output(args)
|
||||
self.assertEqual(output.rstrip(), b"False")
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_sys_xoptions(self):
|
||||
# Test python -X faulthandler
|
||||
code = "import faulthandler; print(faulthandler.is_enabled())"
|
||||
|
@ -432,6 +434,7 @@ class FaultHandlerTests(unittest.TestCase):
|
|||
output = subprocess.check_output(args, env=env)
|
||||
self.assertEqual(output.rstrip(), b"True")
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_env_var(self):
|
||||
# empty env var
|
||||
code = "import faulthandler; print(faulthandler.is_enabled())"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue