- Set
stdin
to a closedPIPE
inpytester.py.Testdir.popen()
for avoid unwanted interactivepdb
(#2023) - Add missing
encoding
attribute tosys.std*
streams when usingcapsys
capture mode. (#2375) - Fix terminal color changing to black on Windows if
colorama
is imported in aconftest.py
file. (#2510) - Fix line number when reporting summary of skipped tests. (#2548)
- capture: ensure that EncodedFile.name is a string. (#2555)
- The options
`--fixtures
and`--fixtures-per-test
will now keep indentation within docstrings. (#2574) - doctests line numbers are now reported correctly, fixing pytest-sugar#122. (#2610)
- Clarify
pytest_configure
hook call order. (#2539) - Extend documentation for testing plugin code with the
pytester
plugin. (#971)
- Update help message for
--strict
to make it clear it only deals with unregistered markers, not warnings. (#2444) - Renamed the utility function
_pytest.compat._escape_strings
to_ascii_escaped
to better communicate the function's purpose. (#2533) - Improve error message for CollectError with skip/skipif. (#2546)
- Emit warning about
yield
tests being deprecated only once per generator. (#2562) - Ensure final collected line doesn't include artifacts of previous write. (#2571)
- Fixed all flake8 errors and warnings. (#2581)
- Added
fix-lint
tox environment to run automatic pep8 fixes on the code. (#2582) - Show multiple issue links in CHANGELOG entries. (#2620)