Skip to content

Commit 2140b19

Browse files
committed
remove unneeded mocks
1 parent a4a481c commit 2140b19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_tarfile.py

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

16821682
@unittest.skipUnless(os_helper.can_symlink(), 'requires symlink support')
1683-
@unittest.mock.patch('os.chown')
1684-
@unittest.mock.patch('os.utime')
16851683
@unittest.mock.patch('os.chmod')
1686-
def test_deferred_directory_attributes_update(self, mock_chmod, mock_utime, mock_chown):
1684+
def test_deferred_directory_attributes_update(self, mock_chmod):
16871685
# Regression test for gh-127987: setting attributes on arbitrary files
16881686
tempdir = os.path.join(TEMPDIR, 'test127987')
16891687
def mock_chmod_side_effect(path, mode, **kwargs):

0 commit comments

Comments
 (0)