Skip to content

Commit 0e506f1

Browse files
authored
Fix SELinux context test and update patch usage
1 parent 4e127d8 commit 0e506f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/test/test_venv.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ def create_contents(self, paths, filename):
375375
f.write(b'Still here?')
376376

377377
def test_install_scripts_selinux(self):
378-
"""
379-
gh-145417: Test that install_scripts does not copy SELinux context when
380-
copying scripts.
381-
"""
382-
with patch('os.listxattr') as listxattr_mock:
383-
venv.create(self.env_dir)
384-
listxattr_mock.assert_not_called()
378+
"""
379+
gh-145417: Test that install_scripts does not copy SELinux context
380+
when copying scripts.
381+
"""
382+
with patch('shutil.os.listxattr') as listxattr_mock:
383+
venv.create(self.env_dir)
384+
listxattr_mock.assert_not_called()
385385

386386
def test_overwrite_existing(self):
387387
"""

0 commit comments

Comments
 (0)