We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b4dd1 commit 705ca02Copy full SHA for 705ca02
pyperformance/tests/test_pythoninfo.py
@@ -65,8 +65,12 @@ def test_venv(self):
65
venv, python, cleanup = tests.create_venv()
66
self.addCleanup(cleanup)
67
expected.sys.executable = python
68
- expected.sys._base_executable = os.path.normpath(sys.executable)
69
- expected.base_executable = os.path.normpath(sys.executable)
+ realpath = os.path.realpath(os.path.normpath(sys.executable))
+ if os.name == 'nt':
70
+ # It isn't a symlink.
71
+ expected.executable_realpath = os.path.realpath(python)
72
+ expected.sys._base_executable = realpath
73
+ expected.base_executable = realpath
74
expected.sys.prefix = venv
75
expected.sys.exec_prefix = venv
76
expected.sys.version_info = tuple(expected.sys.version_info)
0 commit comments