Commit 38a7104
authored
tests: --update-data incompatible with xdist (#15641)
Fixes a
[gotcha](#15283 (comment))
with `--update-data`.
When using `--update-data` with parallelized tests (xdist), the line
offsets determined at test time may become wrong by update time, as
multiple workers perform their updates to the same file.
This makes it so we exit with a usage error when `--update-data` is used
with parallelism.1 parent 569cfc9 commit 38a7104
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
624 | 631 | | |
625 | 632 | | |
626 | 633 | | |
| |||
0 commit comments