Skip to main content

Setup additional values for ELLIPSIS_MARKER for doctests

Project description

See Build Status on Travis CI See Build Status on AppVeyor

Setup additional values for ELLIPSIS_MARKER for doctests

This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.


Doctest has problems with matching default ELLIPSIS_MARKER at the begging of line and interprets them as line continuation characters and not as ellipsis for the output. The easy way was to use # doctest: +SKIP:

>>> u'Tanie dranie niesłychanie' # doctest: +SKIP

Without SKIP it would not work. But then the statement is not tested :(

This plugin cant extend ELLIPSIS_MARKER mathing a little without actually changing the default ELLIPSIS_MARKER value:

>>> u'Adios pomidory'


You can install “pytest-doctest-ellipsis-markers” via pip from PyPI:

$ pip install pytest-doctest-ellipsis-markers


By default the markers below will be treated as ELLIPSIS_MARKER, to change them add doctest_ellipsis_markers to your ini style configuration.

doctest_ellipsis_markers = [...] '...' "..."


Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.


Distributed under the terms of the MIT license, “pytest-doctest-ellipsis-markers” is free and open source software


If you encounter any problems, please file an issue along with a detailed description.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-doctest-ellipsis-markers, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_doctest_ellipsis_markers-0.1.0-py2-none-any.whl (6.0 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size pytest_doctest_ellipsis_markers-0.1.0-py3-none-any.whl (6.0 kB) File type Wheel Python version 3.5 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page