pytest icon indicating copy to clipboard operation
pytest copied to clipboard

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

Results 653 pytest issues
Sort by recently updated
recently updated
newest added

Currently the property `node` of `FixtureRequest` is defined as ```python @property @abc.abstractmethod def node(self): """Underlying collection node (depends on current request scope).""" raise NotImplementedError() ``` which implicitly types the return...

type: proposal
topic: fixtures
topic: typing

This PR adds a new attribute to the `Callspec2` class to provide the ID associated with a particular set of parametrizations. We are using the parametrization data in a report...

bot:chronographer:provided

Now that 9.0 is out, we should remove the pytest 9 removed features. According to our deprecation policy, 9.0 only turns the deprecation warnings to errors by default, but doesn't...

type: deprecation

Recently I learned that GitHub now supports release immutability: https://github.blog/changelog/2025-10-28-immutable-releases-are-now-generally-available I think we should enable this for `pytest`, or even perhaps organization wide.

type: infrastructure

Add a tox configuration that runs tests using uv and its own provided python versions. This configuration uses the lowest-direct resolution logic as well as only use uv manager python...

bot:chronographer:provided

#1978 exposed that some norecurse directories have a name that is very sane to use outside of a project root this issue is pretty tricky to debug we should evaluate...

type: enhancement

**Fix issue:** 13650, fixes regression when adding exception group which meant pytest raises in teardown wouldn't stop execution Scope note: This PR intentionally does not handle nested ExceptionGroups (EGs containing...

bot:chronographer:provided

#### What's the problem this feature will solve? My application emits a lot of logs. I'd like to view only a certain channel or channels when I specify e.g. `--log-level=debug`...

type: proposal
plugin: logging

while configuring log file level to debug, it seems that some libraries generate massive amounts of logging data thats not necessarily helping the intent but bloats the logfile in turn...

type: enhancement
type: proposal
plugin: logging

Part of https://github.com/pytest-dev/pytest/issues/13768. See also discussion in https://github.com/pytest-dev/pytest/pull/13837. The `PYTEST_CURRENT_TEST` envvar stores the node id and phase of the current test. When multiple threads are running, we'll need to generalize...

type: proposal
type: performance