summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-06 17:24:11 (GMT)
committerGitHub <noreply@github.com>2022-06-06 17:24:11 (GMT)
commit22fed605e096eb74f3aa33f6d25aee76fdc2a3fa (patch)
treecd15eb66416ec5aa0ad33e48b0c76f98bb811b45 /Lib/test/test_tempfile.py
parent56b5daf15970be449d44e91f08db84c698ac5506 (diff)
downloadcpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.zip
cpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.tar.gz
cpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.tar.bz2
gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)
WASI does not have the ``chmod(2)`` syscall yet.
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index f056e5c..20f88d8 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -450,6 +450,7 @@ class TestMkstempInner(TestBadTempdir, BaseTestCase):
support.gc_collect() # For PyPy or other GCs.
os.rmdir(dir)
+ @os_helper.skip_unless_working_chmod
def test_file_mode(self):
# _mkstemp_inner creates files with the proper mode
@@ -787,6 +788,7 @@ class TestMkdtemp(TestBadTempdir, BaseTestCase):
finally:
os.rmdir(dir)
+ @os_helper.skip_unless_working_chmod
def test_mode(self):
# mkdtemp creates directories with the proper mode