From 5081e78efde901556398615eb477c63c836686e5 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 8 Mar 2022 13:17:30 +0200 Subject: bpo-40280: Block more non-working syscalls in Emscripten (GH-31757) - getgroups always fails. - geteuid and getegid always return 0 (root), which confuse tarfile and tests. - hardlinks (link, linkat) always fails. - non-encodable file names are not supported by NODERAWFS layer. - mark more tests with dependency on subprocess and multiprocessing. Mocking does not work if the module fails to import. --- Lib/test/test_script_helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_script_helper.py') diff --git a/Lib/test/test_script_helper.py b/Lib/test/test_script_helper.py index 4ade2cbc0d..f7871fd3b7 100644 --- a/Lib/test/test_script_helper.py +++ b/Lib/test/test_script_helper.py @@ -3,7 +3,7 @@ import subprocess import sys import os -from test.support import script_helper +from test.support import script_helper, requires_subprocess import unittest from unittest import mock @@ -69,6 +69,7 @@ class TestScriptHelper(unittest.TestCase): self.assertNotIn('-E', popen_command) +@requires_subprocess() class TestScriptHelperEnvironment(unittest.TestCase): """Code coverage for interpreter_requires_environment().""" -- cgit v1.2.1