With the code from PR 122564, the destination of the "not taken" branch out of line 9 below, offset 46, maps (through co_locations()) to None, making it difficult (if not impossible) to interpret for coverage:
For some reason, jump threading hasn't converted the jump at 36, POP_JUMP_IF_FALSE 3 (to L1) to a jump to L3.
Not only that, but the jump at L1 lacks a location.
Fixing the jump threading, or adding a location to 46 JUMP_FORWARD 15 (to L3) would fix this.
Activity
markshannon commented on Aug 16, 2024
For some reason, jump threading hasn't converted the jump at 36, POP_JUMP_IF_FALSE 3 (to L1) to a jump to L3.
Not only that, but the jump at L1 lacks a location.
Fixing the jump threading, or adding a location to 46 JUMP_FORWARD 15 (to L3) would fix this.
pythongh-123048: Fix missing source location in pattern matching code
gh-123048: Fix missing source location in pattern matching code (#123167
nedbat commented on Aug 20, 2024
Thanks! @markshannon would it be possible to get these kinds of fixes onto your branch as well, so there is one place to try the latest code?
pythongh-123048: Fix missing source location in pattern matching code (…
pythongh-123048: Fix missing source location in pattern matching code (…
[3.13] gh-123048: Fix missing source location in pattern matching code (
pythongh-123048: Fix missing source location in pattern matching code (…
[3.12] gh-123048: Fix missing source location in pattern matching code (