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 573 pytest issues
Sort by recently updated
recently updated
newest added

Now that [Python 3.8 is officially EOL](https://discuss.python.org/t/python-3-8-is-now-officially-eol/66983), I think it is time to drop support for it from `main`.

type: infrastructure

- [x] a detailed description of the bug or problem you are having # Description There seems to be an inconsistency with how ANSI escape codes for colored output are...

type: bug
topic: reporting

#### Preface Python has a way of checking that one dict is a subset of another one, as highlighed in https://github.com/pytest-dev/pytest/issues/2376#issuecomment-338407594. This is quite a nifty feature that allows for...

type: enhancement
topic: rewrite

#### What's the problem this feature will solve? Pytest cannot evaluate fixture that are async functions or async generators. Users of async pytest plugins may unintentionally annotate those functions with...

type: enhancement
topic: fixtures

I have 7.2.2 of pytest installed. With a conftest installed in each dir above where I'm running tests, I see: ``` > $ pytest --version pytest 7.2.2 CONFTEST ../../ LOADED...

* Added `package` property to `FeatureRequest` class * Closes Issue #12852

#### What's the problem this feature will solve? Fixtures can have function, class, and module specific behavior by inspecting `request` but not package specific behavior, even for package scoped fixtures....

In this example, pytest hits an internal error when trying to report "fixture 'f' not found". I don't know how to reproduce it without Hy; I suspect the problem is...

input: ```python import pytest def sut(): return [(1.0, 1.0)] def test_approx(): assert sut() == pytest.approx([(2.0, 2.0)]) ``` output: ``` ===================== test session starts ====================== platform darwin -- Python 3.12.6, pytest-8.3.3,...