#2778·pwntools

Sphinx doctest failure output does not include line number

Author: peace-makerCreated Sep 11, 2026Updated Sep 11, 2026
Labelsenhancement

Failing tests in CI don't include the line number where the failing code is from in the error message. This makes it annoying to debug the failing tests when the line content is ambiguous.

File "elf/corefile.rst", line ?, in default
Failed example:
    libc = ELF(which('bash')).libc
Exception raised:
    Traceback (most recent call last):

Maybe our own monkey patches to the doctest runner play a role in this? https://github.com/Gallopsled/pwntools/blob/dev/docs/source/conf.py