release-2.8.7.rst

Overview

This file is the release notes document for `pytest` version **2.8.7**, a hotfix release addressing a regression introduced in the previous version 2.8.6. The regression affected the builtin `monkeypatch` plugin, causing unpredictable behavior in object resolution during testing. This release restores predictable object resolution and aims to be fully backward compatible with version 2.8.5.

`pytest` is a mature Python testing framework widely used for writing and running tests, known for its rich feature set and strong community support. The release notes provide a summary of the fix, instructions for upgrading, acknowledgments to contributors, and links to further documentation.

Purpose and Functionality

This file serves as a changelog and informational resource for users upgrading or installing `pytest` version 2.8.7. Its main purposes are:

Detailed Content Explanation

The file consists entirely of formatted text (reStructuredText format), structured as follows:

Title and Version

pytest-2.8.7
============

Indicates the project name and version number.

Release Description

Change Log Section

2.8.7 (compared to 2.8.6)
-------------------------

- fix #1338: use predictable object resolution for monkeypatch

This bullet point summarizes the critical fix:

Usage Example

While this file itself has no executable code or API, the upgrade instruction is the main practical usage:

pip install -U pytest

This command upgrades the installed pytest package to version 2.8.7.

Important Implementation Details

Interaction with Other System Components

Visual Diagram: Structure of release-2.8.7.rst

Since this is a documentation/release notes file without classes or functions, a **flowchart** illustrating the file’s informational flow is the most appropriate.

flowchart TD
    A[Title: pytest-2.8.7] --> B[Release Description]
    B --> C[Upgrade Instructions]
    B --> D[Contributor Acknowledgments]
    B --> E[Documentation Link]
    B --> F[Change Log]
    F --> G[Fix #1338 - monkeypatch object resolution]
    style A fill:#f9f,stroke:#333,stroke-width:2px
    style F fill:#bbf,stroke:#333,stroke-width:1px

Summary


**End of documentation for release-2.8.7.rst**