(self)
| 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 | |
| 806 | class CommandLineTests(unittest.TestCase): |
nothing calls this directly
no test coverage detected