Commit 34490d3
test_libevreactor_shutdown: Use installed wheel in subprocess
The atexit subprocess test inserted the project root at sys.path[0], which
shadows the installed compiled wheel with the in-tree pure-Python source. Under
cibuildwheel that source lacks the libev C extension, so the import failed and
the subprocess produced no output.
Append the project path instead so the installed wheel takes precedence,
falling back to the source tree only when the driver is not installed. Also
assert the subprocess return code and include stdout/stderr in the failure
message so future subprocess import/runtime failures are easier to diagnose.1 parent 26c201a commit 34490d3
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
168 | 180 | | |
169 | 181 | | |
170 | 182 | | |
| |||
0 commit comments