Opened 13 months ago

Closed 13 months ago

Last modified 9 months ago

#17907 closed enhancement (fixed)

pytest-7.3.0 (Python module)

Reported by: Bruce Dubbs Owned by: Bruce Dubbs
Priority: normal Milestone: 12.0
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

New minor version.

Change History (5)

comment:1 by Douglas R. Reno, 13 months ago

Whenever this update is done, the dependency on 'attrs' can be removed (though note that it's used in a couple of other packages, so just remove the dependency from this package)

comment:2 by Bruce Dubbs, 13 months ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

comment:3 by Bruce Dubbs, 13 months ago

pytest 7.3.0 (2023-04-08)

Features

  • Test methods decorated with @classmethod can now be discovered as tests, following the same rules as normal methods. This fills the gap that static methods were discoverable as tests but not class methods.
  • console_output_style now supports progress-even-when-capture-no to force the use of the progress output even when capture is disabled. This is useful in large test suites where capture may have significant performance impact.
  • --log-disable CLI option added to disable individual loggers.
  • Added tmp_path_retention_count and tmp_path_retention_policy configuration options to control how directories created by the tmp_path fixture are kept.

Improvements

  • If multiple errors are raised in teardown, we now re-raise an ExceptionGroup of them instead of discarding all but the last.
  • Allow -p arguments to include spaces (eg: -p no:logging instead of -pno:logging). Mostly useful in the addopts section of the configuration file.
  • Added start and stop timestamps to TestReport objects.
  • Split the report header for rootdir, config file and testpaths so each has its own line.
  • pytest should no longer crash on AST with pathological position attributes
  • The full output of a test is no longer truncated if the truncation message would be longer than the hidden text. The line number shown has also been fixed.

Bug Fixes

  • The assertion rewriting mechanism now works correctly when assertion expressions contain the walrus operator.
  • Fixed tmp_path fixture always raising OSError on emscripten platform due to missing os.getuid().
  • Correctly handle __tracebackhide__ for chained exceptions.

Improved Documentation

  • Fixed the minimal example in Good Integration Practices: pip install -e . requires a version entry in pyproject.toml to run successfully.

Trivial/Internal Changes

  • pytest no longer depends on the attrs package (don’t worry, nice diffs for attrs classes are still supported).

comment:4 by Bruce Dubbs, 13 months ago

Resolution: fixed
Status: assignedclosed

Fixed at commits

388f58d8b9 Update to pytest-7.3.0 (Python module).
31b5fdf3e6 Update to libpcap-1.10.4.
ab75b523a7 Update to mesa-23.0.2.

comment:5 by Bruce Dubbs, 9 months ago

Milestone: 11.412.0

Milestone renamed

Note: See TracTickets for help on using tickets.