aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_platform.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-25 09:09:06 +0200
committerGitHub <noreply@github.com>2022-01-25 08:09:06 +0100
commit8464fbc42ecc9ce504faac499711dcdc6eedef16 (patch)
tree1992e76c83da4720bc1dbc95901a417e0a4781e3 /Lib/test/test_platform.py
parente1abffca45b60729c460e3e2ad50c8c1946cfd4e (diff)
downloadcpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.tar.gz
cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.zip
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r--Lib/test/test_platform.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py
index 1a688775f46..d70ef155271 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -79,6 +79,7 @@ class PlatformTest(unittest.TestCase):
res = platform.architecture()
@os_helper.skip_unless_symlink
+ @support.requires_subprocess()
def test_architecture_via_symlink(self): # issue3762
with support.PythonSymlink() as py:
cmd = "-c", "import platform; print(platform.architecture())"
@@ -269,6 +270,7 @@ class PlatformTest(unittest.TestCase):
self.assertEqual(res[:5], expected[:5])
@unittest.skipIf(sys.platform in ['win32', 'OpenVMS'], "uname -p not used")
+ @support.requires_subprocess()
def test_uname_processor(self):
"""
On some systems, the processor must match the output