Skip to content

4.2.1

Compare
Choose a tag to compare
@nicoddemus nicoddemus released this 10 Aug 13:39
· 5398 commits to master since this release

pytest 4.2.1 (2019-02-12)

Bug Fixes

  • #2895: The
    pytest_report_collectionfinish hook now is also called with
    --collect-only.
  • #3899: Do not
    raise UsageError when an imported package has a
    pytest_plugins.py child module.
  • #4347: Fix
    output capturing when using pdb++ with recursive debugging.
  • #4592: Fix
    handling of collect_ignore via parent conftest.py.
  • #4700: Fix
    regression where setUpClass would always be called in subclasses
    even if all tests were skipped by a unittest.skip() decorator
    applied in the subclass.
  • #4739: Fix
    parametrize(... ids=<function>) when the function returns
    non-strings.
  • #4745:
    Fix/improve collection of args when passing in __init__.py and a
    test file.
  • #4770:
    more_itertools is now constrained to <6.0.0 when required for
    Python 2.7 compatibility.
  • #526: Fix
    "ValueError: Plugin already registered" exceptions when running in
    build directories that symlink to actual source.

Improved Documentation

  • #3899: Add note
    to plugins.rst that pytest_plugins should not be used as a name
    for a user module containing plugins.
  • #4324: Document
    how to use raises and does_not_raise to write parametrized tests
    with conditional raises.
  • #4709: Document
    how to customize test failure messages when using pytest.warns.

Trivial/Internal Changes

  • #4741: Some
    verbosity related attributes of the TerminalReporter plugin are now
    read only properties.