Commit 99ad560
committed
fix(tests): Use explicit None check for xdist worker number in relay.py
Fix falsy-zero check that masks xdist worker 0 identity. Change from
'xdist._worker_num or 0' to 'xdist._worker_num if xdist._worker_num is not None else 0'
to properly distinguish between worker gw0 (_worker_num=0) and non-xdist case
(_worker_num=None), matching the pattern used in xdist.py and sentry.py.1 parent 91a5699 commit 99ad560
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments