Skip to content

5.2.0

Compare
Choose a tag to compare
@nicoddemus nicoddemus released this 29 Sep 13:05
· 4977 commits to main since this release

pytest 5.2.0 (2019-09-28)

Deprecations

  • #1682: Passing
    arguments to pytest.fixture() as positional arguments is
    deprecated - pass them as a keyword argument instead.

Features

  • #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
    for
    more information.
  • #5764: New
    behavior of the --pastebin option: failures to connect to the
    pastebin server are reported, without failing the pytest run

Bug Fixes

  • #5806: Fix
    "lexer" being used when uploading to bpaste.net from --pastebin
    to "text".
  • #5884: Fix
    --setup-only and --setup-show for custom pytest items.

Trivial/Internal Changes

  • #5056: The
    HelpFormatter uses py.io.get_terminal_width for better
    width detection.