Test that the sys.executable value is as expected.
(self)
| 475 | # to the source build - so Python can't initialise properly. |
| 476 | @requireVenvCreate |
| 477 | def test_executable(self): |
| 478 | """ |
| 479 | Test that the sys.executable value is as expected. |
| 480 | """ |
| 481 | rmtree(self.env_dir) |
| 482 | self.run_with_capture(venv.create, self.env_dir) |
| 483 | envpy = self.envpy(real_env_dir=True) |
| 484 | out, err = check_output([envpy, '-c', |
| 485 | 'import sys; print(sys.executable)']) |
| 486 | self.assertEqual(out.strip(), envpy.encode()) |
| 487 | |
| 488 | @unittest.skipUnless(can_symlink(), 'Needs symlinks') |
| 489 | def test_executable_symlinks(self): |
nothing calls this directly
no test coverage detected