pytest --fixtures drops indentation from fixture docstring #2574
Labels
good first issue
easy issue that is friendly to new contributor
topic: fixtures
anything involving fixtures directly or indirectly
topic: reporting
related to terminal output and user-facing messages and errors
When a fixture docstring has varying levels of indentation
pytest --fixtures
drops the indentation completely. For example:calling
python -mpytest test_foo.py --fixtures
outputs:However I would have expected this to output:
i.e. only the smallest indentation level should be stripped away (except maybe for the first line that requires special treatment).
The text was updated successfully, but these errors were encountered: