Skip to content

chore(deps): update dependency pytest to v6.1.2#65

Merged
dizcology merged 3 commits into
googleapis:masterfrom
renovate-bot:renovate/pytest-6.x
Nov 17, 2020
Merged

chore(deps): update dependency pytest to v6.1.2#65
dizcology merged 3 commits into
googleapis:masterfrom
renovate-bot:renovate/pytest-6.x

Conversation

@renovate-bot

@renovate-bot renovate-bot commented Nov 13, 2020

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Update Change
pytest (source) minor ==6.0.1 -> ==6.1.2

Release Notes

pytest-dev/pytest

v6.1.2

Compare Source

pytest 6.1.2 (2020-10-28)

Bug Fixes

  • #​7758: Fixed an issue where some files in packages are getting lost from --lf even though they contain tests that failed. Regressed in pytest 5.4.0.
  • #​7911: Directories created by tmpdir are now considered stale after 3 days without modification (previous value was 3 hours) to avoid deleting directories still in use in long running test suites.

Improved Documentation

  • #​7815: Improve deprecation warning message for pytest._fillfuncargs().

v6.1.1

Compare Source

pytest 6.1.1 (2020-10-03)

Bug Fixes

  • #​7807: Fixed regression in pytest 6.1.0 causing incorrect rootdir to be determined in some non-trivial cases where parent directories have config files as well.
  • #​7814: Fixed crash in header reporting when testpaths is used and contains absolute paths (regression in 6.1.0).

v6.1.0

Compare 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:

    • The funcargnames read-only property of FixtureRequest, Metafunc, and Function classes. Use fixturenames attribute.
    • @pytest.fixture no longer supports positional arguments, pass all arguments by keyword instead.
    • Direct construction of Node subclasses now raise an error, use from_parent instead.
    • The default value for junit_family has changed to xunit2. If you require the old format, add junit_family=xunit1 to your configuration file.
    • The TerminalReporter no longer has a writer attribute. Plugin authors may use the public functions of the TerminalReporter instead of accessing the TerminalWriter object directly.
    • The --result-log option 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.collect module is deprecated: all its names can be imported from pytest directly.

  • #​7097: The pytest._fillfuncargs function 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 -k is deprecated. Use -k 'not expr'
    instead.

    The special -k 'expr:' syntax to -k is 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() and isinitpath() methods of FSCollector and Package are deprecated;
    use self.session.gethookproxy() and self.session.isinitpath() instead.
    This should work on all pytest versions.

Features

  • #​7667: New --durations-min command-line flag controls the minimal duration for inclusion in the slowest list of tests shown by --durations. Previously this was hard-coded to 0.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_plugins is 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 final designation 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

import pytest

@&#8203;pytest.fixture(params=[1, 2])
def foo(request):
    return request.param

test_foo.py

import pytest

@&#8203;pytest.fixture
def foo(foo):
    return foo * 2
```
  • #​4984: Fixed an internal error crash with IndexError: list index out of range when
    collecting a module which starts with a decorated function, the decorator
    raises, and assertion rewriting is enabled.
  • #​7591: pylint shouldn't complain anymore about unimplemented abstract methods when inheriting from File <non-python tests>.
  • #​7628: Fixed test collection when a full path without a drive letter was passed to pytest on Windows (for example \projects\tests\test.py instead of c:\projects\tests\pytest.py).
  • #​7638: Fix handling of command-line options that appear as paths but trigger an OS-level syntax error on Windows, such as the options used internally by pytest-xdist.
  • #​7742: Fixed INTERNALERROR when accessing locals / globals with faulty exec.

Improved Documentation

  • #​1477: Removed faq.rst and its reference in contents.rst.

Trivial/Internal Changes

  • #​7536: The internal junitxml plugin has rewritten to use xml.etree.ElementTree.
    The order of attributes in XML elements might differ. Some unneeded escaping is
    no longer performed.
  • #​7587: The dependency on the more-itertools package has been removed.
  • #​7631: The result type of capfd.readouterr() <_pytest.capture.CaptureFixture.readouterr> (and similar) is no longer a namedtuple,
    but should behave like one in all respects. This was done for technical reasons.
  • #​7671: When collecting tests, pytest finds test classes and functions by examining the
    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 and
    python_functions configuration options and without passing them to plugins
    using the pytest_pycollect_makeitem <_pytest.hookspec.pytest_pycollect_makeitem> hook.

v6.0.2

Compare Source

pytest 6.0.2 (2020-09-04)

Bug Fixes

  • #​7148: Fixed --log-cli potentially causing unrelated print output to be swallowed.
  • #​7672: Fixed log-capturing level restored incorrectly if caplog.set_level is called more than once.
  • #​7686: Fixed NotSetType.token being used as the parameter ID when the parametrization list is empty.
    Regressed in pytest 6.0.0.
  • #​7707: Fix internal error when handling some exceptions that contain multiple lines or the style uses multiple lines (--tb=line for 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate-bot renovate-bot requested a review from a team November 13, 2020 16:04
@trusted-contributions-gcf trusted-contributions-gcf Bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 13, 2020
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 13, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 13, 2020
@trusted-contributions-gcf trusted-contributions-gcf Bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 16, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 16, 2020
@trusted-contributions-gcf trusted-contributions-gcf Bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 17, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 17, 2020
@dizcology dizcology added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 17, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 17, 2020
@dizcology dizcology merged commit f79c0f4 into googleapis:master Nov 17, 2020
@renovate-bot renovate-bot deleted the renovate/pytest-6.x branch November 17, 2020 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants