Skip to content

Commit d15ad82

Browse files
authored
Update test_venv.py
1 parent ace163b commit d15ad82

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Lib/test/test_venv.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,15 @@ def create_contents(self, paths, filename):
373373
with open(fn, 'wb') as f:
374374
f.write(b'Still here?')
375375

376-
@unittest.skipUnless(hasattr(os, 'listxattr'), 'test requires os.listxattr')
377-
def test_install_scripts_selinux(self):
378-
"""
379-
gh-145417: Test that install_scripts does not copy SELinux context
380-
when copying scripts.
381-
"""
382-
with patch('os.listxattr') as listxattr_mock:
383-
venv.create(self.env_dir)
384-
listxattr_mock.assert_not_called()
376+
@unittest.skipUnless(hasattr(os, 'listxattr'), 'test requires os.listxattr')
377+
def test_install_scripts_selinux(self):
378+
"""
379+
gh-145417: Test that install_scripts does not copy SELinux context
380+
when copying scripts.
381+
"""
382+
with patch('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)