diff options
author | Christian Heimes <christian@python.org> | 2022-03-08 13:17:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 12:17:30 +0100 |
commit | 5081e78efde901556398615eb477c63c836686e5 (patch) | |
tree | 5be2667672a5d7a1df2b32b5a215546d1b5a5507 /Lib/test/test_os.py | |
parent | 36dd7396fcd26d8bf9919d536d05d7000becbe5b (diff) | |
download | cpython-git-5081e78efde901556398615eb477c63c836686e5.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 660691579c..4800291023 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -2203,6 +2203,7 @@ class TestInvalidFD(unittest.TestCase): self.check(os.set_blocking, True) +@unittest.skipUnless(hasattr(os, 'link'), 'requires os.link') class LinkTests(unittest.TestCase): def setUp(self): self.file1 = os_helper.TESTFN |