Xdoctest

Latest version: v1.2.0

Safety actively analyzes 688931 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 11

0.6.1

Fixed
* Fixed python2 unicode error in collection phase

0.6.0

Added
* Added nocolor command line arg
* Added parserkw arg
* Python 3.7 support

Changed
* Better error messages when you forget a raw string on a google block with newlines in the docstr.
* Tests for malformed google docstr case.

0.5.8

Fixed
* Fixed install issues (/introduced hack FIXME later)
* Fixed issue with raw string lineno parsing

0.5.0

Added
* Added config option for lineno offsets. (corresponding arguments added to
native and pytest runners)
* Partial support for Python 3.7


Changed
* Generally Improved doctest error reporting
* Includes better coloring for quick visual inspection
* Line numbers are now reported in a more intuitive way
* We finally removed the exec `DoctestExample.run` from the traceback!

* (we report line numbers of errors in a more intuitive way).

Fixed
* Fixed GH20 where `doclineno_end` was incorrectly parsed
* Fixed issue where google style block lineno was incorrect

0.4.1

Fixed
* Fixed bug with reporting elapsed time in native runner

0.4.0

Added
* Added auto parsing style. This first tries to use Google, but falls back on
freeform if no google-style doctests are found.
* Errors are no longer printed twice if only a single test is being run.
* Added command "dump" to native runner that reformats enabled doctests so they
can be run as unit tests.
* Implemented delayed want matching. This enables doctests to use multiple
print statements in a row and use a single want statement to check all of
their output.

Changed
* All parsers now default to the new "auto" style.
* Colorized doctest now highlights "want" lines in a distinct (green) color

Page 8 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.