mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)
WASI does not have the ``chmod(2)`` syscall yet.
This commit is contained in:
parent
56b5daf159
commit
22fed605e0
20 changed files with 81 additions and 5 deletions
|
@ -9,6 +9,7 @@ import unittest
|
|||
import zipapp
|
||||
import zipfile
|
||||
from test.support import requires_zlib
|
||||
from test.support import os_helper
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
|
@ -317,6 +318,7 @@ class ZipAppTest(unittest.TestCase):
|
|||
# (Unix only) tests that archives with shebang lines are made executable
|
||||
@unittest.skipIf(sys.platform == 'win32',
|
||||
'Windows does not support an executable bit')
|
||||
@os_helper.skip_unless_working_chmod
|
||||
def test_shebang_is_executable(self):
|
||||
# Test that an archive with a shebang line is made executable.
|
||||
source = self.tmpdir / 'source'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue