We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os.chmod()
1 parent 2140b19 commit 6b20f0dCopy full SHA for 6b20f0d
Lib/test/test_tarfile.py
@@ -1680,6 +1680,7 @@ def test_missing_fileobj(self):
1680
tar.addfile(tarinfo)
1681
1682
@unittest.skipUnless(os_helper.can_symlink(), 'requires symlink support')
1683
+ @unittest.skipUnless(hasattr(os, 'chmod'), "missing os.chmod")
1684
@unittest.mock.patch('os.chmod')
1685
def test_deferred_directory_attributes_update(self, mock_chmod):
1686
# Regression test for gh-127987: setting attributes on arbitrary files
0 commit comments