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

Method test_underpth_no_user_site

Lib/test/test_site.py:797–803  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

795
796 @support.requires_subprocess()
797 def test_underpth_no_user_site(self):
798 pth_lines = [test.support.STDLIB_DIR, 'import site']
799 exe_file = self._create_underpth_exe(pth_lines)
800 p = subprocess.run([exe_file, '-X', 'utf8', '-c',
801 'import sys; '
802 'sys.exit(not sys.flags.no_user_site)'])
803 self.assertEqual(p.returncode, 0, "sys.flags.no_user_site was 0")
804
805
806class CommandLineTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

_create_underpth_exeMethod · 0.95
runMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected