You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On current main 4dcf4d448b90140af48ecd357dc3c3813e33e49a, a documented order(after="test_source") reference cannot resolve a parameterized test when its parameter ID contains an opening bracket. The marker is ignored and the dependent test executes first.
pytest -q prints cannot execute 'test_after' relative to others: 'test_source' - ignoring the marker, then reports one failure and one pass. Expected: test_source runs before test_after, as documented for references without the parameter part.
Sorter derives the lookup key using the last [ and the last :: from a full node ID, then repeats the bracket parsing while matching. Those characters may occur in parameter IDs. Using pytest's collected function name and parent identity would keep parameter contents out of label matching.
Related #270 fixed class-scope grouping for :: IDs, but the remaining relative-label lookup is a separate path. Fully qualified references to individual parameter cases remain outside this report; the documented whole-test reference is the failing operation.
AI-assisted investigation; the failure above was executed locally.
Activity
Resolve relative labels independently of parameter ID syntax