Commit de92aed
committed
test_envprovider: skip symlink assertion on Windows for venv-rooted python
The Windows link_binary guard intentionally returns the venv-rooted
source python.exe unchanged (since shimming it breaks CPython's
pyvenv.cfg discovery). The existing linked_binary.is_symlink() /
linked_binary.resolve() == sys.executable assertions therefore
don't apply on Windows — there is no managed shim to inspect. Gate
them behind not IS_WINDOWS and on Windows check instead that
loaded.loaded_abspath == sys.executable directly.1 parent 9b47cbd commit de92aed
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| |||
0 commit comments