Skip to content

Commit 6b20f0d

Browse files
committed
do not run on systems without os.chmod()
1 parent 2140b19 commit 6b20f0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_tarfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,7 @@ def test_missing_fileobj(self):
16801680
tar.addfile(tarinfo)
16811681

16821682
@unittest.skipUnless(os_helper.can_symlink(), 'requires symlink support')
1683+
@unittest.skipUnless(hasattr(os, 'chmod'), "missing os.chmod")
16831684
@unittest.mock.patch('os.chmod')
16841685
def test_deferred_directory_attributes_update(self, mock_chmod):
16851686
# Regression test for gh-127987: setting attributes on arbitrary files

0 commit comments

Comments
 (0)