Commit 34643bd
committed
Fix Windows path escaping in regression tests
The regression tests were failing on Windows because file paths containing
backslashes weren't properly escaped when inserted into Python script strings.
This commit:
- Adds a shared test utility function escape_path_for_python() that converts
backslashes to forward slashes before quoting paths
- Updates the regression tests to use this helper for all file paths
- Refactors test_stdio.py to use the same shared utility
This ensures Windows paths like C:\Users\... are converted to C:/Users/...
which work correctly in Python strings on all platforms.1 parent d9c4b2a commit 34643bd
File tree
3 files changed
+22
-16
lines changed- tests
- client
- issues
3 files changed
+22
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | 253 | | |
259 | 254 | | |
260 | 255 | | |
| |||
280 | 275 | | |
281 | 276 | | |
282 | 277 | | |
283 | | - | |
| 278 | + | |
284 | 279 | | |
285 | 280 | | |
286 | 281 | | |
287 | 282 | | |
288 | 283 | | |
289 | | - | |
| 284 | + | |
290 | 285 | | |
291 | 286 | | |
292 | 287 | | |
| |||
381 | 376 | | |
382 | 377 | | |
383 | 378 | | |
384 | | - | |
| 379 | + | |
385 | 380 | | |
386 | 381 | | |
387 | 382 | | |
| |||
391 | 386 | | |
392 | 387 | | |
393 | 388 | | |
394 | | - | |
| 389 | + | |
395 | 390 | | |
396 | 391 | | |
397 | 392 | | |
| |||
401 | 396 | | |
402 | 397 | | |
403 | 398 | | |
404 | | - | |
| 399 | + | |
405 | 400 | | |
406 | 401 | | |
407 | 402 | | |
| |||
470 | 465 | | |
471 | 466 | | |
472 | 467 | | |
473 | | - | |
| 468 | + | |
474 | 469 | | |
475 | 470 | | |
476 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
163 | | - | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments