summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-16 07:37:30 (GMT)
committerGitHub <noreply@github.com>2022-05-16 07:37:30 (GMT)
commit730902c0ad997462d2567e48def5352fe75c0e2c (patch)
treea83ccc77e4c006b1b4f8a061d5102cf62d72dcf3 /Lib/test/test_capi.py
parent3ed1cae9ed9d1f0dd9d68da4b30b731fdf6be768 (diff)
downloadcpython-730902c0ad997462d2567e48def5352fe75c0e2c.zip
cpython-730902c0ad997462d2567e48def5352fe75c0e2c.tar.gz
cpython-730902c0ad997462d2567e48def5352fe75c0e2c.tar.bz2
gh-90473: WASI: Mark tests that require os.pipe() (GH-92837)
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 6d75895..904ae9b 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -788,6 +788,7 @@ class TestPendingCalls(unittest.TestCase):
class SubinterpreterTest(unittest.TestCase):
+ @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
def test_subinterps(self):
import builtins
r, w = os.pipe()
@@ -803,6 +804,7 @@ class SubinterpreterTest(unittest.TestCase):
self.assertNotEqual(pickle.load(f), id(sys.modules))
self.assertNotEqual(pickle.load(f), id(builtins))
+ @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
def test_subinterps_recent_language_features(self):
r, w = os.pipe()
code = """if 1: