diff options
author | Christian Heimes <christian@python.org> | 2022-06-06 19:24:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 19:24:11 +0200 |
commit | 22fed605e096eb74f3aa33f6d25aee76fdc2a3fa (patch) | |
tree | cd15eb66416ec5aa0ad33e48b0c76f98bb811b45 /Lib/test/test_dbm_dumb.py | |
parent | 56b5daf15970be449d44e91f08db84c698ac5506 (diff) | |
download | cpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.tar.gz cpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.zip |
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_dbm_dumb.py')
-rw-r--r-- | Lib/test/test_dbm_dumb.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_dbm_dumb.py b/Lib/test/test_dbm_dumb.py index 73cff638f1e..a481175b3bf 100644 --- a/Lib/test/test_dbm_dumb.py +++ b/Lib/test/test_dbm_dumb.py @@ -42,6 +42,7 @@ class DumbDBMTestCase(unittest.TestCase): self.read_helper(f) @unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()') + @os_helper.skip_unless_working_chmod def test_dumbdbm_creation_mode(self): try: old_umask = os.umask(0o002) @@ -265,6 +266,7 @@ class DumbDBMTestCase(unittest.TestCase): "'r', 'w', 'c', or 'n'"): dumbdbm.open(_fname, flag) + @os_helper.skip_unless_working_chmod def test_readonly_files(self): with os_helper.temp_dir() as dir: fname = os.path.join(dir, 'db') |