Xdoctest

Latest version: v1.2.0

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

Scan your dependencies

Page 7 of 11

0.8.0

Added
* Added docs! Finally!

Fixed
* Got-want exceptions now return a special error if it fails to create a string-representation of the object instead of crashing.
* The `index` argument in `import_module_from_path` is now correctly used.

0.7.3

Added
* The REQUIRES directive can now accept python modules in the form: ` xdoctest: +REQUIRES(module:<my_modname>)`
* Support for double-colon example syntax in google style parsing: e.g. `Example::`.

Changed
* Demo folder illustrating how xdoctest formats error messages
* Reduced import overhead time from 20ms to 1ms.

0.7.2

Changed
* Removed warning if `pygments` is not installed

0.7.1

Changed
* Changed verbosity defaults

0.7.0

Added
* Added `global-exec` to native xdoctest CLI and `xdoctest-global-exec` to the `pytest` plugin CLI

Changed
* Renamed `DocTest.globs` to `DocTest.global_namespace`
* Internal test changes

Fixed
* Fixed issue in `traceback` parsing that sometimes caused incorrectly offset line numbers.

0.6.2

Fixed
* Fixed bug in `static_analysis.is_balanced_statement` and
`static_analysis.extract_comments` having to do with empty lines
* Fixed odd corner case where `import_module_from_path` seemed to modify `sys.path` in a specific environment
* Fixed Python2 future issues using the print name in doctests.
* Added option to print test times in the runner.

Page 7 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.