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
Found while reviewing #784, and confirmed twice over — the claim was already wrong before that PR, and #784 makes half of it wronger.
tests/integration/test_pcapng_end_to_end.py:185, in PcapngUnescapedKeyTests's skip reason, reads:
…makes the plist report invalid XML at line 1376, where its & is unescaped.
Two problems, both measured:
The line number is wrong, independently of fix(dumpkit): escape mapping keys for the plist writer (#772) #784. The malformed token is at line 1517 of a 1958-line report, not 1376 — ET.parse on 0419c1c97 fails with not well-formed (invalid token): line 1517, column 19. So the citation was already stale before anyone touched the escaping.
So after #784 the skip reason will assert something demonstrably false about plist while remaining correct about json. A reader chasing "invalid XML at line 1376" finds neither the line nor the failure.
What wants doing: reword the skip reason and the class docstring to name only the defect that survives — the json one — with the right mechanism, and drop or correct the line number. If a line number is kept it should be justified by a measurement at the commit that records it, since this one has already drifted once.
Left untouched deliberately: that file was outside #784's owned set, and a prose fix riding along in an unrelated PR is how stale claims get written in the first place.
Blocked on #784 merging, since the plist half is only false once it lands. Checkable blocker: #784 merged.
Found while reviewing #784, and confirmed twice over — the claim was already wrong before that PR, and #784 makes half of it wronger.
tests/integration/test_pcapng_end_to_end.py:185, inPcapngUnescapedKeyTests's skip reason, reads:Two problems, both measured:
ET.parseon0419c1c97fails withnot well-formed (invalid token): line 1517, column 19. So the citation was already stale before anyone touched the escaping.9bec70e22) routes both mapping branches through anescape_keyhelper, so theplistandxmlreports of that capture then parse. The json half still holds —json.loadstill rejects the report, for the separate raw-bytes-key quoting defect upstream indictdumper.So after #784 the skip reason will assert something demonstrably false about
plistwhile remaining correct aboutjson. A reader chasing "invalid XML at line 1376" finds neither the line nor the failure.What wants doing: reword the skip reason and the class docstring to name only the defect that survives — the
jsonone — with the right mechanism, and drop or correct the line number. If a line number is kept it should be justified by a measurement at the commit that records it, since this one has already drifted once.Left untouched deliberately: that file was outside #784's owned set, and a prose fix riding along in an unrelated PR is how stale claims get written in the first place.
Blocked on #784 merging, since the plist half is only false once it lands. Checkable blocker: #784 merged.