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

With this code: ``` python import pytest @pytest.yield_fixture def fixt(): yield raise Exception def test_foo(fixt): pass ``` We get this output: ``` collected 1 items py/test_foo.py::test_foo PASSED py/test_foo.py::test_foo ERROR ==================================...

type: enhancement
status: help wanted
topic: reporting

Setup: Python 3.9.9, `pip list`: ``` attrs 21.4.0 iniconfig 1.1.1 packaging 21.3 pip 21.3.1 pluggy 1.0.0 py 1.11.0 pyparsing 3.0.7 pytest 7.0.1 setuptools 60.5.0 tomli 2.0.1 wheel 0.37.1 ``` (basically...

type: bug
topic: collection
status: critical
type: regression

Hi, as (briefly) discussed in [this discussion](https://github.com/pytest-dev/pytest/discussions/9802), `pytest_unconfigure` differs from `pytest_configure` in terms of exiting. When a `pytest_configure(...)` implementation raises an unhandled exception; pytest exits `3 - ExitCode.INTERNAL_ERROR`; this is...

type: refactoring
topic: config

I am working on cleaning up our collection code, but the current behavior seems odd and incidental, therefore I'd first like to discuss how it *should* behave. pytest and operating...

topic: collection

I've been following #517 for some time and I've recently looked at https://github.com/pytest-dev/pytest/pull/4091 in the hope that it would help me figure out how I can get better support for...

type: proposal
topic: fixtures

I am experiencing a weird issue: 'package' scoped fixture will not execute teardown after last test in package is completed if afformentioned fixture is defined outside of package **Environment** ```...

type: bug
status: help wanted
topic: fixtures

#### What's the problem this feature will solve? This allows me to gather all failed files quicker, I don't need to know whether the remaining tests passed in this file....

type: enhancement
type: proposal

- [x] a detailed description of the bug or problem you are having I'm packaging pytest module as the rpm package using the typical PEP517 based build, install and test...

type: selftests

There are some sphinx documentation minor issues: ```console + /usr/bin/python3 setup.py build_sphinx -b man running build_sphinx Running Sphinx v4.0.2 making output directory... done [autosummary] generating autosummary for: adopt.rst, announce/index.rst, announce/release-2.0.0.rst,...

type: docs
type: infrastructure

- [x] a detailed description of the bug or problem you are having - [x] output of `pip list` from the virtual environment you are using ```console [tkloczko@ss-desktop SPECS]$ pip...

type: bug
type: selftests