chore(deps): update dependency pytest to v6.1.2#65
Merged
Conversation
dizcology
approved these changes
Nov 16, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==6.0.1->==6.1.2Release Notes
pytest-dev/pytest
v6.1.2Compare Source
pytest 6.1.2 (2020-10-28)
Bug Fixes
--lfeven though they contain tests that failed. Regressed in pytest 5.4.0.Improved Documentation
pytest._fillfuncargs().v6.1.1Compare Source
pytest 6.1.1 (2020-10-03)
Bug Fixes
v6.1.0Compare Source
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:
funcargnamesread-only property ofFixtureRequest,Metafunc, andFunctionclasses. Usefixturenamesattribute.@pytest.fixtureno longer supports positional arguments, pass all arguments by keyword instead.Nodesubclasses now raise an error, usefrom_parentinstead.junit_familyhas changed toxunit2. If you require the old format, addjunit_family=xunit1to your configuration file.TerminalReporterno longer has awriterattribute. Plugin authors may use the public functions of theTerminalReporterinstead of accessing theTerminalWriterobject directly.--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 keptfor 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 issueif 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;use
self.session.gethookproxy()andself.session.isinitpath()instead.This should work on all pytest versions.
Features
--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
#6681: Internal pytest warnings issued during the early stages of initialization are now properly handled and can filtered through filterwarnings or
--pythonwarnings/-W.This also fixes a number of long standing issues: #2891, #7620, #7426.
#7572: When a plugin listed in
required_pluginsis missing or an unknown config key is used with--strict-config, a simple error message is now shown instead of a stacktrace.#7685: Added two new attributes rootpath <_pytest.config.Config.rootpath> and inipath <_pytest.config.Config.inipath> to Config <_pytest.config.Config>.
These attributes are pathlib.Path versions of the existing rootdir <_pytest.config.Config.rootdir> and inifile <_pytest.config.Config.inifile> attributes,
and should be preferred over them when possible.
#7780: Public classes which are not designed to be inherited from are now marked @final.
Code which inherits from these classes will trigger a type-checking (e.g. mypy) error, but will still work in runtime.
Currently the
finaldesignation does not appear in the API Reference but hopefully will in the future.Bug Fixes
#1953: Fixed error when overwriting a parametrized fixture, while also reusing the super fixture value.
conftest.py
test_foo.py
IndexError: list index out of rangewhencollecting a module which starts with a decorated function, the decorator
raises, and assertion rewriting is enabled.
\projects\tests\test.pyinstead ofc:\projects\tests\pytest.py).pytest-xdist.exec.Improved Documentation
Trivial/Internal Changes
junitxmlplugin has rewritten to usexml.etree.ElementTree.The order of attributes in XML elements might differ. Some unneeded escaping is
no longer performed.
more-itertoolspackage has been removed.but should behave like one in all respects. This was done for technical reasons.
attributes of python objects (modules, classes and instances). To speed up this
process, pytest now ignores builtin attributes (like
__class__,__delattr__and__new__) without consulting the python_classes andpython_functions configuration options and without passing them to plugins
using the pytest_pycollect_makeitem <_pytest.hookspec.pytest_pycollect_makeitem> hook.
v6.0.2Compare Source
pytest 6.0.2 (2020-09-04)
Bug Fixes
--log-clipotentially causing unrelatedprintoutput to be swallowed.caplog.set_levelis called more than once.Regressed in pytest 6.0.0.
--tb=linefor example).Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.