Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Update pytest to 3.8.2 #1360

Closed
wants to merge 1 commit into from
Closed

Conversation

pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented Oct 2, 2018

This PR updates pytest from 3.7.1 to 3.8.2.

Changelog

3.8.2

=========================

Deprecations and Removals
-------------------------

- `4036 <https://github.com/pytest-dev/pytest/issues/4036>`_: The ``item`` parameter of ``pytest_warning_captured`` hook is now documented as deprecated. We realized only after
the ``3.8`` release that this parameter is incompatible with ``pytest-xdist``.

Our policy is to not deprecate features during bugfix releases, but in this case we believe it makes sense as we are
only documenting it as deprecated, without issuing warnings which might potentially break test suites. This will get
the word out that hook implementers should not use this parameter at all.

In a future release ``item`` will always be ``None`` and will emit a proper warning when a hook implementation
makes use of it.



Bug Fixes
---------

- `3539 <https://github.com/pytest-dev/pytest/issues/3539>`_: Fix reload on assertion rewritten modules.


- `4034 <https://github.com/pytest-dev/pytest/issues/4034>`_: The ``.user_properties`` attribute of ``TestReport`` objects is a list
of (name, value) tuples, but could sometimes be instantiated as a tuple
of tuples.  It is now always a list.


- `4039 <https://github.com/pytest-dev/pytest/issues/4039>`_: No longer issue warnings about using ``pytest_plugins`` in non-top-level directories when using ``--pyargs``: the
current ``--pyargs`` mechanism is not reliable and might give false negatives.


- `4040 <https://github.com/pytest-dev/pytest/issues/4040>`_: Exclude empty reports for passed tests when ``-rP`` option is used.


- `4051 <https://github.com/pytest-dev/pytest/issues/4051>`_: Improve error message when an invalid Python expression is passed to the ``-m`` option.


- `4056 <https://github.com/pytest-dev/pytest/issues/4056>`_: ``MonkeyPatch.setenv`` and ``MonkeyPatch.delenv`` issue a warning if the environment variable name is not ``str`` on Python 2.

In Python 2, adding ``unicode`` keys to ``os.environ`` causes problems with ``subprocess`` (and possible other modules),
making this a subtle bug specially susceptible when used with ``from __future__ import unicode_literals``.



Improved Documentation
----------------------

- `3928 <https://github.com/pytest-dev/pytest/issues/3928>`_: Add possible values for fixture scope to docs.

3.8.1

=========================

Bug Fixes
---------

- `3286 <https://github.com/pytest-dev/pytest/issues/3286>`_: ``.pytest_cache`` directory is now automatically ignored by Git. Users who would like to contribute a solution for other SCMs please consult/comment on this issue.


- `3749 <https://github.com/pytest-dev/pytest/issues/3749>`_: Fix the following error during collection of tests inside packages::

   TypeError: object of type 'Package' has no len()


- `3941 <https://github.com/pytest-dev/pytest/issues/3941>`_: Fix bug where indirect parametrization would consider the scope of all fixtures used by the test function to determine the parametrization scope, and not only the scope of the fixtures being parametrized.


- `3973 <https://github.com/pytest-dev/pytest/issues/3973>`_: Fix crash of the assertion rewriter if a test changed the current working directory without restoring it afterwards.


- `3998 <https://github.com/pytest-dev/pytest/issues/3998>`_: Fix issue that prevented some caplog properties (for example ``record_tuples``) from being available when entering the debugger with ``--pdb``.


- `3999 <https://github.com/pytest-dev/pytest/issues/3999>`_: Fix ``UnicodeDecodeError`` in python2.x when a class returns a non-ascii binary ``__repr__`` in an assertion which also contains non-ascii text.



Improved Documentation
----------------------

- `3996 <https://github.com/pytest-dev/pytest/issues/3996>`_: New `Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`_ page shows all currently
deprecated features, the rationale to do so, and alternatives to update your code. It also list features removed
from pytest in past major releases to help those with ancient pytest versions to upgrade.



Trivial/Internal Changes
------------------------

- `3955 <https://github.com/pytest-dev/pytest/issues/3955>`_: Improve pre-commit detection for changelog filenames


- `3975 <https://github.com/pytest-dev/pytest/issues/3975>`_: Remove legacy code around im_func as that was python2 only

3.8.0

=========================

Deprecations and Removals
-------------------------

- `2452 <https://github.com/pytest-dev/pytest/issues/2452>`_: ``Config.warn`` and ``Node.warn`` have been
deprecated, see `<https://docs.pytest.org/en/latest/deprecations.htmlconfig-warn-and-node-warn>`_ for rationale and
examples.

- `3936 <https://github.com/pytest-dev/pytest/issues/3936>`_: ``pytest.mark.filterwarnings`` second parameter is no longer regex-escaped,
making it possible to actually use regular expressions to check the warning message.

**Note**: regex-escaping the match string was an implementation oversight that might break test suites which depend
on the old behavior.



Features
--------

- `2452 <https://github.com/pytest-dev/pytest/issues/2452>`_: Internal pytest warnings are now issued using the standard ``warnings`` module, making it possible to use
the standard warnings filters to manage those warnings. This introduces ``PytestWarning``,
``PytestDeprecationWarning`` and ``RemovedInPytest4Warning`` warning types as part of the public API.

Consult `the documentation <https://docs.pytest.org/en/latest/warnings.htmlinternal-pytest-warnings>`_ for more info.


- `2908 <https://github.com/pytest-dev/pytest/issues/2908>`_: ``DeprecationWarning`` and ``PendingDeprecationWarning`` are now shown by default if no other warning filter is
configured. This makes pytest more compliant with
`PEP-0506 <https://www.python.org/dev/peps/pep-0565/recommended-filter-settings-for-test-runners>`_. See
`the docs <https://docs.pytest.org/en/latest/warnings.htmldeprecationwarning-and-pendingdeprecationwarning>`_ for
more info.


- `3251 <https://github.com/pytest-dev/pytest/issues/3251>`_: Warnings are now captured and displayed during test collection.


- `3784 <https://github.com/pytest-dev/pytest/issues/3784>`_: ``PYTEST_DISABLE_PLUGIN_AUTOLOAD`` environment variable disables plugin auto-loading when set.


- `3829 <https://github.com/pytest-dev/pytest/issues/3829>`_: Added the ``count`` option to ``console_output_style`` to enable displaying the progress as a count instead of a percentage.


- `3837 <https://github.com/pytest-dev/pytest/issues/3837>`_: Added support for 'xfailed' and 'xpassed' outcomes to the ``pytester.RunResult.assert_outcomes`` signature.



Bug Fixes
---------

- `3911 <https://github.com/pytest-dev/pytest/issues/3911>`_: Terminal writer now takes into account unicode character width when writing out progress.


- `3913 <https://github.com/pytest-dev/pytest/issues/3913>`_: Pytest now returns with correct exit code (EXIT_USAGEERROR, 4) when called with unknown arguments.


- `3918 <https://github.com/pytest-dev/pytest/issues/3918>`_: Improve performance of assertion rewriting.



Improved Documentation
----------------------

- `3566 <https://github.com/pytest-dev/pytest/issues/3566>`_: Added a blurb in usage.rst for the usage of -r flag which is used to show an extra test summary info.


- `3907 <https://github.com/pytest-dev/pytest/issues/3907>`_: Corrected type of the exceptions collection passed to ``xfail``: ``raises`` argument accepts a ``tuple`` instead of ``list``.



Trivial/Internal Changes
------------------------

- `3853 <https://github.com/pytest-dev/pytest/issues/3853>`_: Removed ``"run all (no recorded failures)"`` message printed with ``--failed-first`` and ``--last-failed`` when there are no failed tests.

3.7.4

=========================

Bug Fixes
---------

- `3506 <https://github.com/pytest-dev/pytest/issues/3506>`_: Fix possible infinite recursion when writing ``.pyc`` files.


- `3853 <https://github.com/pytest-dev/pytest/issues/3853>`_: Cache plugin now obeys the ``-q`` flag when ``--last-failed`` and ``--failed-first`` flags are used.


- `3883 <https://github.com/pytest-dev/pytest/issues/3883>`_: Fix bad console output when using ``console_output_style=classic``.


- `3888 <https://github.com/pytest-dev/pytest/issues/3888>`_: Fix macOS specific code using ``capturemanager`` plugin in doctests.



Improved Documentation
----------------------

- `3902 <https://github.com/pytest-dev/pytest/issues/3902>`_: Fix pytest.org links

3.7.3

=========================

Bug Fixes
---------

- `3033 <https://github.com/pytest-dev/pytest/issues/3033>`_: Fixtures during teardown can again use ``capsys`` and ``capfd`` to inspect output captured during tests.


- `3773 <https://github.com/pytest-dev/pytest/issues/3773>`_: Fix collection of tests from ``__init__.py`` files if they match the ``python_files`` configuration option.


- `3796 <https://github.com/pytest-dev/pytest/issues/3796>`_: Fix issue where teardown of fixtures of consecutive sub-packages were executed once, at the end of the outer
package.


- `3816 <https://github.com/pytest-dev/pytest/issues/3816>`_: Fix bug where ``--show-capture=no`` option would still show logs printed during fixture teardown.


- `3819 <https://github.com/pytest-dev/pytest/issues/3819>`_: Fix ``stdout/stderr`` not getting captured when real-time cli logging is active.


- `3843 <https://github.com/pytest-dev/pytest/issues/3843>`_: Fix collection error when specifying test functions directly in the command line using ``test.py::test`` syntax together with ``--doctest-modules``.


- `3848 <https://github.com/pytest-dev/pytest/issues/3848>`_: Fix bugs where unicode arguments could not be passed to ``testdir.runpytest`` on Python 2.


- `3854 <https://github.com/pytest-dev/pytest/issues/3854>`_: Fix double collection of tests within packages when the filename starts with a capital letter.



Improved Documentation
----------------------

- `3824 <https://github.com/pytest-dev/pytest/issues/3824>`_: Added example for multiple glob pattern matches in ``python_files``.


- `3833 <https://github.com/pytest-dev/pytest/issues/3833>`_: Added missing docs for ``pytester.Testdir``.


- `3870 <https://github.com/pytest-dev/pytest/issues/3870>`_: Correct documentation for setuptools integration.



Trivial/Internal Changes
------------------------

- `3826 <https://github.com/pytest-dev/pytest/issues/3826>`_: Replace broken type annotations with type comments.


- `3845 <https://github.com/pytest-dev/pytest/issues/3845>`_: Remove a reference to issue `568 <https://github.com/pytest-dev/pytest/issues/568>`_ from the documentation, which has since been
fixed.

3.7.2

=========================

Bug Fixes
---------

- `3671 <https://github.com/pytest-dev/pytest/issues/3671>`_: Fix ``filterwarnings`` not being registered as a builtin mark.


- `3768 <https://github.com/pytest-dev/pytest/issues/3768>`_, `3789 <https://github.com/pytest-dev/pytest/issues/3789>`_: Fix test collection from packages mixed with normal directories.


- `3771 <https://github.com/pytest-dev/pytest/issues/3771>`_: Fix infinite recursion during collection if a ``pytest_ignore_collect`` hook returns ``False`` instead of ``None``.


- `3774 <https://github.com/pytest-dev/pytest/issues/3774>`_: Fix bug where decorated fixtures would lose functionality (for example ``mock.patch``).


- `3775 <https://github.com/pytest-dev/pytest/issues/3775>`_: Fix bug where importing modules or other objects with prefix ``pytest_`` prefix would raise a ``PluginValidationError``.


- `3788 <https://github.com/pytest-dev/pytest/issues/3788>`_: Fix ``AttributeError`` during teardown of ``TestCase`` subclasses which raise an exception during ``__init__``.


- `3804 <https://github.com/pytest-dev/pytest/issues/3804>`_: Fix traceback reporting for exceptions with ``__cause__`` cycles.



Improved Documentation
----------------------

- `3746 <https://github.com/pytest-dev/pytest/issues/3746>`_: Add documentation for ``metafunc.config`` that had been mistakenly hidden.
Links

@codecov-io
Copy link

Codecov Report

Merging #1360 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1360   +/-   ##
=======================================
  Coverage   93.29%   93.29%           
=======================================
  Files          48       48           
  Lines        1730     1730           
  Branches      170      170           
=======================================
  Hits         1614     1614           
  Misses         93       93           
  Partials       23       23

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f954144...6b3d284. Read the comment docs.

@pyup-bot
Copy link
Contributor Author

Closing this in favor of #1389

@pyup-bot pyup-bot closed this Oct 16, 2018
@jezdez jezdez deleted the pyup-update-pytest-3.7.1-to-3.8.2 branch October 16, 2018 21:54
jezdez pushed a commit that referenced this pull request Jan 17, 2019
Bumps [prismjs](https://github.com/LeaVerou/prism) from 1.8.4 to 1.15.0.
<details>
<summary>Release notes</summary>

*Sourced from [prismjs's releases](https://github.com/LeaVerou/prism/releases).*

> ## v1.15.0
> No release notes provided.
> 
> ## v1.14.0
> Release 1.14.0
> 
> ## v1.13.0
> Release 1.13.0
> 
> ## v1.12.2
> Release 1.12.2
> 
> ## v1.12.1
> Release 1.12.1
> 
> ## v1.12.0
> Release 1.12.0
> 
> ## v1.11.0
> Release 1.11.0
> 
> ## v1.10.0
> Release 1.10.0
> 
> ## v1.9.0
> Release 1.9.0
</details>
<details>
<summary>Changelog</summary>

*Sourced from [prismjs's changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md).*

> ## 1.15.0 (2018-06-16)
> 
> ### New components
> 
> * __Template Tookit 2__ ([#1418](https://github-redirect.dependabot.com/PrismJS/prism/issues/1418)) [[`e063992`](PrismJS/prism@e063992)]
> * __XQuery__ ([#1411](https://github-redirect.dependabot.com/PrismJS/prism/issues/1411)) [[`e326cb0`](PrismJS/prism@e326cb0)]
> * __TAP__ ([#1430](https://github-redirect.dependabot.com/PrismJS/prism/issues/1430)) [[`8c2b71f`](PrismJS/prism@8c2b71f)]
> 
> ### Updated components
> 
> * __HTTP__
> 	* Absolute path is a valid request uri ([#1388](https://github-redirect.dependabot.com/PrismJS/prism/issues/1388)) [[`f6e81cb`](PrismJS/prism@f6e81cb)]
> * __Kotlin__
> 	* Add keywords of Kotlin and modify it's number pattern. ([#1389](https://github-redirect.dependabot.com/PrismJS/prism/issues/1389)) [[`1bf73b0`](PrismJS/prism@1bf73b0)]
> 	* Add `typealias` keyword ([#1437](https://github-redirect.dependabot.com/PrismJS/prism/issues/1437)) [[`a21fdee`](PrismJS/prism@a21fdee)]
> * __JavaScript
> 	* Improve Regexp pattern [[`5b043cf`](PrismJS/prism@5b043cf)]
> 	* Add support for one level of nesting inside template strings. Fix [#1397](https://github-redirect.dependabot.com/PrismJS/prism/issues/1397) [[`db2d0eb`](PrismJS/prism@db2d0eb)]
> * __Elixir__
> 	* Elixir: Fix attributes consuming punctuation. Fix [#1392](https://github-redirect.dependabot.com/PrismJS/prism/issues/1392) [[`dac0485`](PrismJS/prism@dac0485)]
> * __Bash__
> 	* Change reserved keyword reference ([#1396](https://github-redirect.dependabot.com/PrismJS/prism/issues/1396)) [[`b94f01f`](PrismJS/prism@b94f01f)]
> * __PowerShell__
> 	* Allow for one level of nesting in expressions inside strings. Fix [#1407](https://github-redirect.dependabot.com/PrismJS/prism/issues/1407) [[`9272d6f`](PrismJS/prism@9272d6f)]
> * __JSX__
> 	* Allow for two levels of nesting inside JSX tags. Fix [#1408](https://github-redirect.dependabot.com/PrismJS/prism/issues/1408) [[`f1cd7c5`](PrismJS/prism@f1cd7c5)]
> 	* Add support for fragments short syntax. Fix [#1421](https://github-redirect.dependabot.com/PrismJS/prism/issues/1421) [[`38ce121`](PrismJS/prism@38ce121)]
> * __Pascal__
> 	* Add `objectpascal` as an alias to `pascal` ([#1426](https://github-redirect.dependabot.com/PrismJS/prism/issues/1426)) [[`a0bfc84`](PrismJS/prism@a0bfc84)]
> * __Swift__
> 	* Fix Swift 'protocol' keyword ([#1440](https://github-redirect.dependabot.com/PrismJS/prism/issues/1440)) [[`081e318`](PrismJS/prism@081e318)]
> 
> ### Updated plugins
> 
> * __File Highlight__
> 	* Fix issue causing the Download button to show up on every code blocks. [[`cd22499`](PrismJS/prism@cd22499)]
> 	* Simplify lang regex on File Highlight plugin ([#1399](https://github-redirect.dependabot.com/PrismJS/prism/issues/1399)) [[`7bc9a4a`](PrismJS/prism@7bc9a4a)]
> * __Show Language__
> 	* Don't process language if block language not set ([#1410](https://github-redirect.dependabot.com/PrismJS/prism/issues/1410)) [[`c111869`](PrismJS/prism@c111869)]
> * __Autoloader__
> 	* ASP.NET should require C# [[`fa328bb`](PrismJS/prism@fa328bb)]
> * __Line Numbers__
> 	* Make line-numbers styles more specific ([#1434](https://github-redirect.dependabot.com/PrismJS/prism/issues/1434), [#1435](https://github-redirect.dependabot.com/PrismJS/prism/issues/1435)) [[`9ee4f54`](PrismJS/prism@9ee4f54)]
> 
> ### Updated themes
> 
> * Add .token.class-name to rest of themes ([#1360](https://github-redirect.dependabot.com/PrismJS/prism/issues/1360)) [[`f356dfe`](PrismJS/prism@f356dfe)]
> 
> ### Other changes
> 
></table> ... (truncated)
</details>
<details>
<summary>Commits</summary>

- [`7d084d5`](PrismJS/prism@7d084d5) 1.15.0
- [`5f04f4d`](PrismJS/prism@5f04f4d) Merge pull request [#1440](https://github-redirect.dependabot.com/LeaVerou/prism/issues/1440) from PrismJS/fix-solidity-protocol
- [`09b56af`](PrismJS/prism@09b56af) Merge pull request [#1430](https://github-redirect.dependabot.com/LeaVerou/prism/issues/1430) from PrismJS/add-tap
- [`41e3d6a`](PrismJS/prism@41e3d6a) Update minified files
- [`2c6b6a4`](PrismJS/prism@2c6b6a4) Fix Swift protocol test
- [`791f400`](PrismJS/prism@791f400) Add tests
- [`f2b1964`](PrismJS/prism@f2b1964) Add Chinese translation
- [`081e318`](PrismJS/prism@081e318) Fix Swift 'protocol' keyword
- [`f356dfe`](PrismJS/prism@f356dfe) Add .token.class-name to rest of themes ([#1360](https://github-redirect.dependabot.com/LeaVerou/prism/issues/1360))
- [`1595770`](PrismJS/prism@1595770) Merge branch 'gh-pages'
- Additional commits viewable in [compare view](PrismJS/prism@v1.8.4...v1.15.0)
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=prismjs&package-manager=npm_and_yarn&previous-version=1.8.4&new-version=1.15.0)](https://dependabot.com/compatibility-score.html?dependency-name=prismjs&package-manager=npm_and_yarn&previous-version=1.8.4&new-version=1.15.0)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants