Erotemic / xdoctest

A rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in static_analysis._docstr_line_workaround

Erotemic opened this issue · comments

The _docstr_line_workaround was never meant to be robust, but there is a glaring bug in it that is causing it to do nothing at all. This means that there must be errors elsewhere in the code that cause the tests to incorrectly pass.

The extend of this bug is that the absolute line numbers of doctests may be incorrect reported.

The severity of the bug is moderate. It doesn't break core functionality (running doctests), but it does impact a significant use case (using line numbers to debug failing tests).

This should be fixed.