File: skip_doctests.py

package info (click to toggle)
pytest-doctestplus 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: python: 1,978; makefile: 13; sh: 7
file content (33 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Licensed under a 3-clause BSD style license - see LICENSE.rst

# Skip all tests in this file since they'll all fail
__doctest_skip__ = ['*']


def bad_doctest():
    """
    This test will fail if __doctest_skip__ is not working properly.

    >>> x + y
    5
    """


def another_bad_doctest():
    """
    This test will fail if __doctest_skip__ is not working properly.

    >>> import foobar
    >>> foobar.baz()
    5
    """


def yet_another_bad_doctest():
    """
    This test will fail if __doctest_skip__ is not working properly.

    >>> NOT VALID PYTHON, RIGHT
    >>> + 7
    42
    """