MCPcopy Index your code
hub / github.com/python/cpython / test_install_scripts_selinux

Method test_install_scripts_selinux

Lib/test/test_venv.py:377–384  ·  view source on GitHub ↗

gh-145417: Test that install_scripts does not copy SELinux context when copying scripts.

(self)

Source from the content-addressed store, hash-verified

375
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()
385
386 def test_overwrite_existing(self):
387 """

Callers

nothing calls this directly

Calls 3

patchFunction · 0.90
assert_not_calledMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected