From de554d6e02228b840eb6bffaf7d406c0ef368d5f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 10 Mar 2022 14:43:40 +0200 Subject: bpo-40280: Skip more tests/features that don't apply to Emscripten (GH-31791) - fd inheritance can't be modified because Emscripten doesn't support subprocesses anyway. - setpriority always fails - geteuid no longer causes problems with latest emsdk - umask is a stub - geteuid / getuid always return 0, but process cannot chown to random uid. --- Lib/test/test_tarfile.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_tarfile.py') diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 0a67bcb0b09..12850cd635e 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -1498,6 +1498,7 @@ class StreamWriteTest(WriteTestBase, unittest.TestCase): @unittest.skipUnless(sys.platform != "win32" and hasattr(os, "umask"), "Missing umask implementation") + @unittest.skipIf(support.is_emscripten, "Emscripten's umask is a stub.") def test_file_mode(self): # Test for issue #8464: Create files with correct # permissions. -- cgit v1.2.3