Commit 8d04ad9
* Fix NotImplementedError crash when using xdist schedulers without mark_test_pending
Handle gracefully when pytest-xdist schedulers (like LoadScopeScheduling)
don't implement mark_test_pending by catching NotImplementedError and
failing the test with a clear message instead of crashing the test run.
When a test crashes and cannot be rescheduled:
- Set report outcome to "failed" with informative error message
- Explain which scheduler lacks rescheduling support
- Show remaining rerun count that couldn't be used
- Continue test execution instead of internal crash
Fixes #247
---------
Co-authored-by: Michael Howitz <icemac@gmx.net>
1 parent cb8ede7 commit 8d04ad9
1 file changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
366 | 382 | | |
367 | 383 | | |
368 | 384 | | |
| |||
0 commit comments