diff options
| author | Christian Heimes <christian@python.org> | 2022-01-20 17:56:33 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 17:56:33 (GMT) |
| commit | c02e860ee79f29905be6fca997c96bb1a404bb32 (patch) | |
| tree | a4376cbc44b23a6eb5919fee929ae0a63cec1c36 /Lib/test/test_capi.py | |
| parent | ef3ef6fa43d5cca072eed2a66064e818de583be7 (diff) | |
| download | cpython-c02e860ee79f29905be6fca997c96bb1a404bb32.zip cpython-c02e860ee79f29905be6fca997c96bb1a404bb32.tar.gz cpython-c02e860ee79f29905be6fca997c96bb1a404bb32.tar.bz2 | |
bpo-40280: Misc fixes for wasm32-emscripten (GH-30722)
Diffstat (limited to 'Lib/test/test_capi.py')
| -rw-r--r-- | Lib/test/test_capi.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 7ada840..0957f32 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -26,6 +26,10 @@ try: import _posixsubprocess except ImportError: _posixsubprocess = None +try: + import _testmultiphase +except ImportError: + _testmultiphase = None # Skip this test if the _testcapi module isn't available. _testcapi = import_helper.import_module('_testcapi') @@ -798,6 +802,7 @@ class SubinterpreterTest(unittest.TestCase): self.assertFalse(hasattr(binascii.Error, "foobar")) + @unittest.skipIf(_testmultiphase is None, "test requires _testmultiphase module") def test_module_state_shared_in_global(self): """ bpo-44050: Extension module state should be shared between interpreters @@ -991,6 +996,7 @@ class PyMemDefaultTests(PyMemDebugTests): PYTHONMALLOC = '' +@unittest.skipIf(_testmultiphase is None, "test requires _testmultiphase module") class Test_ModuleStateAccess(unittest.TestCase): """Test access to module start (PEP 573)""" |
