Release notes
*Sourced from [pytest's releases](https://github.com/pytest-dev/pytest/releases).*
> ## 5.2.0
> pytest 5.2.0 (2019-09-28)
> =========================
>
> Deprecations
> ------------
>
> - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): Passing
> arguments to pytest.fixture() as positional arguments is
> deprecated - pass them as a keyword argument instead.
>
> Features
> --------
>
> - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): The
> `scope` parameter of `@pytest.fixture` can now be a callable that
> receives the fixture name and the `config` object as keyword-only
> parameters. See [the
> docs](https://docs.pytest.org/en/fixture.html#dynamic-scope) for
> more information.
> - [\#5764](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5764): New
> behavior of the `--pastebin` option: failures to connect to the
> pastebin server are reported, without failing the pytest run
>
> Bug Fixes
> ---------
>
> - [\#5806](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5806): Fix
> "lexer" being used when uploading to bpaste.net from `--pastebin`
> to "text".
> - [\#5884](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5884): Fix
> `--setup-only` and `--setup-show` for custom pytest items.
>
> Trivial/Internal Changes
> ------------------------
>
> - [\#5056](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5056): The
> HelpFormatter uses `py.io.get_terminal_width` for better
> width detection.
>
> ## 5.1.3
> pytest 5.1.3 (2019-09-18)
> =========================
>
> Bug Fixes
> ---------
>
> - [\#5807](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5807): Fix
> pypy3.6 (nightly) on windows.
> - [\#5811](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5811): Handle
> ... (truncated)
Changelog
*Sourced from [pytest's changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst).*
> pytest 5.2.0 (2019-09-28)
> =========================
>
> Deprecations
> ------------
>
> - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): Passing arguments to pytest.fixture() as positional arguments is deprecated - pass them as a keyword argument instead.
>
> Features
> --------
>
> - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): The `scope` parameter of `@pytest.fixture` can now be a callable that receives the fixture name and the `config` object as keyword-only parameters. See [the docs](https://docs.pytest.org/en/fixture.html#dynamic-scope) for more information.
> - [\#5764](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5764): New behavior of the `--pastebin` option: failures to connect to the pastebin server are reported, without failing the pytest run
>
> Bug Fixes
> ---------
>
> - [\#5806](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5806): Fix "lexer" being used when uploading to bpaste.net from `--pastebin` to "text".
> - [\#5884](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5884): Fix `--setup-only` and `--setup-show` for custom pytest items.
>
> Trivial/Internal Changes
> ------------------------
>
> - [\#5056](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5056): The HelpFormatter uses `py.io.get_terminal_width` for better width detection.
>
> pytest 5.1.3 (2019-09-18)
> =========================
>
> Bug Fixes
> ---------
>
> - [\#5807](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5807): Fix pypy3.6 (nightly) on windows.
> - [\#5811](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5811): Handle `--fulltrace` correctly with `pytest.raises`.
> - [\#5819](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5819): Windows: Fix regression with conftest whose qualified name contains uppercase characters (introduced by [#5792](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5792)).
>
> pytest 5.1.2 (2019-08-30)
> =========================
>
> Bug Fixes
> ---------
>
> - [\#2270](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/2270): Fixed `self` reference in function-scoped fixtures defined plugin classes: previously `self` would be a reference to a *test* class, not the *plugin* class.
> - [\#570](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/570): Fixed long standing issue where fixture scope was not respected when indirect fixtures were used during parametrization.
> - [\#5782](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5782): Fix decoding error when printing an error response from `--pastebin`.
> - [\#5786](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5786): Chained exceptions in test and collection reports are now correctly serialized, allowing plugins like `pytest-xdist` to display them properly.
> - [\#5792](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5792): Windows: Fix error that occurs in certain circumstances when loading `conftest.py` from a working directory that has casing other than the one stored in the filesystem (e.g., `c:\test` instead of `C:\test`).
>
> pytest 5.1.1 (2019-08-20)
> =========================
>
> ... (truncated)
Commits
- [`068ef90`](https://github.com/pytest-dev/pytest/commit/068ef90b92a9e9205af31cb3d82e7d2a433ff969) Preparing release version 5.2.0
- [`065773a`](https://github.com/pytest-dev/pytest/commit/065773aa97a02731e5eec05e29204b50850d9248) Use 'python3' instead of 'python3.6' on tox
- [`b622768`](https://github.com/pytest-dev/pytest/commit/b62276826c708ec4138c622b396fec711d5a836c) Merge pull request [#5886](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5886) from nicoddemus/setup-plan-custom-items-5884
- [`7bdfba3`](https://github.com/pytest-dev/pytest/commit/7bdfba3578455b58589e5834fea3feaf932018bd) Fix --setup-only and --setup-show for custom pytest items
- [`6bfd30d`](https://github.com/pytest-dev/pytest/commit/6bfd30d169c3192befb4cfd9b267caad7efb56cd) Merge pull request [#5878](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5878) from blueyed/codecov-retry-6
- [`7731e45`](https://github.com/pytest-dev/pytest/commit/7731e456151337a2830736115396d023c8188884) ci: codecov: use 6 retries with curl
- [`8806b1f`](https://github.com/pytest-dev/pytest/commit/8806b1f531683daebd819a297d059ee199879efb) Merge pull request [#5875](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5875) from asottile/patch-1
- [`19c9e53`](https://github.com/pytest-dev/pytest/commit/19c9e536044b969bf7c5377e7b0a5dff55a6accf) Make sure to quote `sys.executable` as we're running a shell
- [`c28b631`](https://github.com/pytest-dev/pytest/commit/c28b63135f53028bb0bcfb129f1dce757b4dfc0e) Merge master into features ([#5874](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5874))
- [`7c64d5d`](https://github.com/pytest-dev/pytest/commit/7c64d5d88243259e0bbd3a472e5ca7510d5cd9dc) Do not call python directly but use sys.executable. Fixes [#5872](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5872) ([#5873](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5873))
- Additional commits viewable in [compare view](https://github.com/pytest-dev/pytest/compare/3.9.2...5.2.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.
Dependabot commands and options
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 squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- 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.
Coverage remained the same at ?% when pulling b13a26acaa5d49cdafa83b0482ddd8487a661613 on dependabot/pip/pytest-5.2.0 into 30c301c72f100af3db01820bafacc9f62a20784b on master.
Bumps pytest from 3.9.2 to 5.2.0.
Release notes
*Sourced from [pytest's releases](https://github.com/pytest-dev/pytest/releases).* > ## 5.2.0 > pytest 5.2.0 (2019-09-28) > ========================= > > Deprecations > ------------ > > - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): Passing > arguments to pytest.fixture() as positional arguments is > deprecated - pass them as a keyword argument instead. > > Features > -------- > > - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): The > `scope` parameter of `@pytest.fixture` can now be a callable that > receives the fixture name and the `config` object as keyword-only > parameters. See [the > docs](https://docs.pytest.org/en/fixture.html#dynamic-scope) for > more information. > - [\#5764](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5764): New > behavior of the `--pastebin` option: failures to connect to the > pastebin server are reported, without failing the pytest run > > Bug Fixes > --------- > > - [\#5806](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5806): Fix > "lexer" being used when uploading to bpaste.net from `--pastebin` > to "text". > - [\#5884](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5884): Fix > `--setup-only` and `--setup-show` for custom pytest items. > > Trivial/Internal Changes > ------------------------ > > - [\#5056](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5056): The > HelpFormatter uses `py.io.get_terminal_width` for better > width detection. > > ## 5.1.3 > pytest 5.1.3 (2019-09-18) > ========================= > > Bug Fixes > --------- > > - [\#5807](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5807): Fix > pypy3.6 (nightly) on windows. > - [\#5811](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5811): Handle > ... (truncated)Changelog
*Sourced from [pytest's changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst).* > pytest 5.2.0 (2019-09-28) > ========================= > > Deprecations > ------------ > > - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): Passing arguments to pytest.fixture() as positional arguments is deprecated - pass them as a keyword argument instead. > > Features > -------- > > - [\#1682](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/1682): The `scope` parameter of `@pytest.fixture` can now be a callable that receives the fixture name and the `config` object as keyword-only parameters. See [the docs](https://docs.pytest.org/en/fixture.html#dynamic-scope) for more information. > - [\#5764](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5764): New behavior of the `--pastebin` option: failures to connect to the pastebin server are reported, without failing the pytest run > > Bug Fixes > --------- > > - [\#5806](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5806): Fix "lexer" being used when uploading to bpaste.net from `--pastebin` to "text". > - [\#5884](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5884): Fix `--setup-only` and `--setup-show` for custom pytest items. > > Trivial/Internal Changes > ------------------------ > > - [\#5056](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5056): The HelpFormatter uses `py.io.get_terminal_width` for better width detection. > > pytest 5.1.3 (2019-09-18) > ========================= > > Bug Fixes > --------- > > - [\#5807](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5807): Fix pypy3.6 (nightly) on windows. > - [\#5811](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5811): Handle `--fulltrace` correctly with `pytest.raises`. > - [\#5819](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5819): Windows: Fix regression with conftest whose qualified name contains uppercase characters (introduced by [#5792](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5792)). > > pytest 5.1.2 (2019-08-30) > ========================= > > Bug Fixes > --------- > > - [\#2270](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/2270): Fixed `self` reference in function-scoped fixtures defined plugin classes: previously `self` would be a reference to a *test* class, not the *plugin* class. > - [\#570](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/570): Fixed long standing issue where fixture scope was not respected when indirect fixtures were used during parametrization. > - [\#5782](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5782): Fix decoding error when printing an error response from `--pastebin`. > - [\#5786](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5786): Chained exceptions in test and collection reports are now correctly serialized, allowing plugins like `pytest-xdist` to display them properly. > - [\#5792](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5792): Windows: Fix error that occurs in certain circumstances when loading `conftest.py` from a working directory that has casing other than the one stored in the filesystem (e.g., `c:\test` instead of `C:\test`). > > pytest 5.1.1 (2019-08-20) > ========================= > > ... (truncated)Commits
- [`068ef90`](https://github.com/pytest-dev/pytest/commit/068ef90b92a9e9205af31cb3d82e7d2a433ff969) Preparing release version 5.2.0 - [`065773a`](https://github.com/pytest-dev/pytest/commit/065773aa97a02731e5eec05e29204b50850d9248) Use 'python3' instead of 'python3.6' on tox - [`b622768`](https://github.com/pytest-dev/pytest/commit/b62276826c708ec4138c622b396fec711d5a836c) Merge pull request [#5886](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5886) from nicoddemus/setup-plan-custom-items-5884 - [`7bdfba3`](https://github.com/pytest-dev/pytest/commit/7bdfba3578455b58589e5834fea3feaf932018bd) Fix --setup-only and --setup-show for custom pytest items - [`6bfd30d`](https://github.com/pytest-dev/pytest/commit/6bfd30d169c3192befb4cfd9b267caad7efb56cd) Merge pull request [#5878](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5878) from blueyed/codecov-retry-6 - [`7731e45`](https://github.com/pytest-dev/pytest/commit/7731e456151337a2830736115396d023c8188884) ci: codecov: use 6 retries with curl - [`8806b1f`](https://github.com/pytest-dev/pytest/commit/8806b1f531683daebd819a297d059ee199879efb) Merge pull request [#5875](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5875) from asottile/patch-1 - [`19c9e53`](https://github.com/pytest-dev/pytest/commit/19c9e536044b969bf7c5377e7b0a5dff55a6accf) Make sure to quote `sys.executable` as we're running a shell - [`c28b631`](https://github.com/pytest-dev/pytest/commit/c28b63135f53028bb0bcfb129f1dce757b4dfc0e) Merge master into features ([#5874](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5874)) - [`7c64d5d`](https://github.com/pytest-dev/pytest/commit/7c64d5d88243259e0bbd3a472e5ca7510d5cd9dc) Do not call python directly but use sys.executable. Fixes [#5872](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5872) ([#5873](https://github-redirect.dependabot.com/pytest-dev/pytest/issues/5873)) - Additional commits viewable in [compare view](https://github.com/pytest-dev/pytest/compare/3.9.2...5.2.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
.Dependabot commands and options
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 squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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.