Bump pytest from 6.0.2 to 6.1.0
Bumps pytest from 6.0.2 to 6.1.0.
Release notes
Sourced from pytest's releases.
6.1.0
pytest 6.1.0 (2020-09-26)
Breaking Changes
#5585: As per our policy, the following features which have been deprecated in the 5.X series are now removed:
- The
funcargnamesread-only property ofFixtureRequest,Metafunc, andFunctionclasses. Usefixturenamesattribute.@pytest.fixtureno longer supports positional arguments, pass all arguments by keyword instead.- Direct construction of
Nodesubclasses now raise an error, usefrom_parentinstead.- The default value for
junit_familyhas changed toxunit2. If you require the old format, addjunit_family=xunit1to your configuration file.- The
TerminalReporterno longer has awriterattribute. Plugin authors may use the public functions of theTerminalReporterinstead of accessing theTerminalWriterobject directly.- The
--result-logoption has been removed. Users are recommended to use the pytest-reportlog plugin instead.For more information consult Deprecations and Removals in the docs.
Deprecations
#6981: The
pytest.collectmodule is deprecated: all its names can be imported frompytestdirectly.#7097: The
pytest._fillfuncargsfunction is deprecated. This function was kept for backward compatibility with an older plugin.It's functionality is not meant to be used directly, but if you must replace it, use function._request._fillfixtures() instead, though note this is not a public API and may break in the future.
#7210: The special
-k '-expr'syntax to-kis deprecated. Use-k 'not expr'instead.The special
-k 'expr:'syntax to-kis deprecated. Please open an issue if you use this and want a replacement.#7255: The pytest_warning_captured <_pytest.hookspec.pytest_warning_captured> hook is deprecated in favor of pytest_warning_recorded <_pytest.hookspec.pytest_warning_recorded>, and will be removed in a future version.
#7648: The
gethookproxy()andisinitpath()methods ofFSCollectorandPackageare deprecated; useself.session.gethookproxy()andself.session.isinitpath()instead. This should work on all pytest versions.Features
- #7667: New
--durations-mincommand-line flag controls the minimal duration for inclusion in the slowest list of tests shown by--durations. Previously this was hard-coded to0.005s.Improvements
... (truncated)
Commits
-
868bc00Prepare release version 6.1.0 -
0b327ccMerge pull request #7796 from bluetech/changelog-cleanups -
d3c746echangelog: some consistency cleanups -
d3f47bfImproved 'Declaring new hooks' section in docs. (#7782) -
3db2489Merge pull request #7784 from nicoddemus/use-new-pip-solver-7783 -
8215625Use new pip resolver in plugins tox env -
5cfd7c0Merge pull request #7780 from bluetech/final -
a99ca87Mark some public and to-be-public classes as@final -
050c2dfUse multiple issue template types and mention Discussions (#7739) -
cdfdb3aAdd docs about reusing fixtures from other projects (#7772) - Additional commits viewable in compare view