Whole file

nschloe/pytest-codeblocks

The author described this change as fix for markdown starting with code block. It counts as a record because the check below fails on the code as it stood at 384d6f488 and passes on 640f31fa8, with nothing else changed between the two runs.

Fix saved2021-02-17
Sharing licenceMIT · LICENSE.txt
Change size+4 1

What the code was meant to do, written into the code itself as a save note

fix for markdown starting with code block

The change

4040
4141 if syntax_filter and syntax_filter.strip() != syntax.strip():
4242 continue
43- if previous_line.strip() == "<!--exdown-skip-->":
43+ if (
44+ previous_line is not None
45+ and previous_line.strip() == "<!--exdown-skip-->"
46+ ):
4447 continue
4548
4649 out.append(("".join(code_block), lineno))

The check that tells the two apart

failpass·test/test_exdown.py::test_reference

Check file test/test_exdown.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it384d6f488a569a6daafb2612356ac4f18e674d79
Broken version dated2021-02-16
Moduleexdown.main
Units changedfrom_buffer
Fingerprintbb0b4da7975eae41
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in nschloe/pytest-codeblocks