mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534) (GH-93550)
WASI does not have the ``chmod(2)`` syscall yet.
(cherry picked from commit 22fed605e0
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
986ce4e613
commit
6787a8f146
20 changed files with 81 additions and 5 deletions
|
@ -630,6 +630,7 @@ class MiscReadTestBase(CommonReadTest):
|
|||
data = f.read()
|
||||
self.assertEqual(sha256sum(data), sha256_regtype)
|
||||
|
||||
@os_helper.skip_unless_working_chmod
|
||||
def test_extractall(self):
|
||||
# Test if extractall() correctly restores directory permissions
|
||||
# and times (see issue1735).
|
||||
|
@ -660,6 +661,7 @@ class MiscReadTestBase(CommonReadTest):
|
|||
tar.close()
|
||||
os_helper.rmtree(DIR)
|
||||
|
||||
@os_helper.skip_unless_working_chmod
|
||||
def test_extract_directory(self):
|
||||
dirtype = "ustar/dirtype"
|
||||
DIR = os.path.join(TEMPDIR, "extractdir")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue