Classes | |
| class | Capture |
| class | Output |
| class | SanitizedString |
| class | Unordered |
Functions | |
| def | _make_explanation (a, b) |
| def | _sanitize_docstring (thing) |
| def | _sanitize_general (s) |
| def | _sanitize_message (thing) |
| def | _split_and_sort (s) |
| def | _strip_and_dedent (s) |
| def | capture (capsys) |
| def | doc () |
| def | gc_collect () |
| def | msg () |
| def | pytest_assertrepr_compare (op, left, right) |
| def | pytest_configure () |
| def | pytest_report_header (config) |
| def | use_multiprocessing_forkserver_on_linux () |
Variables | |
| _hexadecimal | |
| _long_marker | |
| autouse | |
| collect_ignore | |
| scope | |
pytest configuration Extends output capture as needed by pybind11: ignore constructors, optional unordered lines. Adds docstring and exceptions message sanitizers.
|
private |
Explanation for a failed assert -- the a and b arguments are List[str]
Definition at line 60 of file conftest.py.
|
private |
Definition at line 170 of file conftest.py.
|
private |
Definition at line 164 of file conftest.py.
|
private |
Definition at line 181 of file conftest.py.
|
private |
For output which does not require specific line order
Definition at line 55 of file conftest.py.
|
private |
For triple-quote strings
Definition at line 50 of file conftest.py.
| def conftest.capture | ( | capsys | ) |
Extended `capsys` with context manager and custom equality operators
Definition at line 140 of file conftest.py.
| def conftest.doc | ( | ) |
Sanitize docstrings and add custom failure explanation
Definition at line 176 of file conftest.py.
| def conftest.gc_collect | ( | ) |
Run the garbage collector twice (needed when running reference counting tests with PyPy)
Definition at line 200 of file conftest.py.
| def conftest.msg | ( | ) |
Sanitize messages and add custom failure explanation
Definition at line 188 of file conftest.py.
| def conftest.pytest_assertrepr_compare | ( | op, | |
| left, | |||
| right | |||
| ) |
Hook to insert custom failure explanation
Definition at line 193 of file conftest.py.
| def conftest.pytest_configure | ( | ) |
Definition at line 207 of file conftest.py.
| def conftest.pytest_report_header | ( | config | ) |
Definition at line 212 of file conftest.py.
| def conftest.use_multiprocessing_forkserver_on_linux | ( | ) |
Definition at line 30 of file conftest.py.
|
private |
Definition at line 44 of file conftest.py.
|
private |
Definition at line 43 of file conftest.py.
| conftest.autouse |
Definition at line 29 of file conftest.py.
| conftest.collect_ignore |
Definition at line 47 of file conftest.py.
| conftest.scope |
Definition at line 29 of file conftest.py.