Test that the sys.executable value is as expected.
(self)
| 485 | |
| 486 | @unittest.skipUnless(can_symlink(), 'Needs symlinks') |
| 487 | def test_executable_symlinks(self): |
| 488 | """ |
| 489 | Test that the sys.executable value is as expected. |
| 490 | """ |
| 491 | rmtree(self.env_dir) |
| 492 | builder = venv.EnvBuilder(clear=True, symlinks=True) |
| 493 | builder.create(self.env_dir) |
| 494 | envpy = self.envpy(real_env_dir=True) |
| 495 | out, err = check_output([envpy, '-c', |
| 496 | 'import sys; print(sys.executable)']) |
| 497 | self.assertEqual(out.strip(), envpy.encode()) |
| 498 | |
| 499 | # gh-124651: test quoted strings |
| 500 | @unittest.skipIf(os.name == 'nt', 'contains invalid characters on Windows') |
nothing calls this directly
no test coverage detected