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 | suppress (exception) |
Variables | |
_hexadecimal | |
_long_marker | |
collect_ignore | |
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 35 of file conftest.py.
|
private |
Definition at line 150 of file conftest.py.
|
private |
Definition at line 143 of file conftest.py.
|
private |
Definition at line 162 of file conftest.py.
|
private |
For output which does not require specific line order
Definition at line 30 of file conftest.py.
|
private |
For triple-quote strings
Definition at line 25 of file conftest.py.
def conftest.capture | ( | capsys | ) |
Extended `capsys` with context manager and custom equality operators
Definition at line 118 of file conftest.py.
def conftest.doc | ( | ) |
Sanitize docstrings and add custom failure explanation
Definition at line 157 of file conftest.py.
def conftest.gc_collect | ( | ) |
Run the garbage collector twice (needed when running reference counting tests with PyPy)
Definition at line 191 of file conftest.py.
def conftest.msg | ( | ) |
Sanitize messages and add custom failure explanation
Definition at line 170 of file conftest.py.
def conftest.pytest_assertrepr_compare | ( | op, | |
left, | |||
right | |||
) |
Hook to insert custom failure explanation
Definition at line 176 of file conftest.py.
def conftest.pytest_configure | ( | ) |
Definition at line 198 of file conftest.py.
def conftest.pytest_report_header | ( | config | ) |
Definition at line 203 of file conftest.py.
def conftest.suppress | ( | exception | ) |
Suppress the desired exception
Definition at line 183 of file conftest.py.
|
private |
Definition at line 19 of file conftest.py.
|
private |
Definition at line 18 of file conftest.py.
conftest.collect_ignore |
Definition at line 22 of file conftest.py.