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

Hi. Are there any plans to support PEP-657 style enhanced tracebacks when on py 3.11? with some pointers i'd be happy to look at implemetation

type: enhancement
status: help wanted
topic: tracebacks

### description when using `pytest.approx` on nested data structures I'd expect it to raise an exception also for mixed data type containers like a `tuple` in a `list`. So far...

topic: approx

Hello, I'm running unit tests in parallel with such configuration: platform linux2 -- Python 2.7.12, pytest-3.0.6, py-1.4.31, pluggy-0.4.0 -- /tmp/pyve/bin/python2 plugins: timeout-1.2.0, xdist-1.15.0, cov-2.4.0 And I'm getting quite often such...

type: enhancement

head-fork: ptkenny/pytest compare: ptk/approx-nested-fix base-fork: pytest-dev/pytest base: main Closes #10210. Apparently there is some ongoing design discussion related to this bug that I'm not privy to(this is my first contribution),...

status: needs information
bot:chronographer:provided

#### What's the problem this feature will solve? As far as I understand, `py` (especially `py.local`) and related fixtures like `tempdir` should be replace with `pathlib` and their corresponding fixtures...

type: docs

Passing a short path in the command line was causing the matchparts check to fail, because `Path(short_path) != Path(long_path)`. Using `os.path.samefile` as fallback ensures the comparison works on Windows when...

Previously, the mode was hard-coded to be "w" which truncates the file before logging. Relevant documentation has been updated and tests have been added to validate the new functionality. Closes...

Thanks to https://github.com/pytest-dev/pytest/issues/11988#issuecomment-1950318888, the problem was our custom template. The solution was to copy the template from Sphinx 7 and remove the header.

Hi team, I am trying to run Pytest inside of an Airflow task. Doing so causes a recursive logging scenario. As I understand it based on https://github.com/apache/airflow/discussions/30107#discussioncomment-5314709, Airflow tasks redirects...

type: question
plugin: capture
status: needs information

While not really a serious bug, it seems confusing to get this behavior: ``` $ pytest --config-file=/dev/null --collect-only tests/fixtures/duplicate_names ============================================================================================= test session starts ============================================================================================= platform darwin -- Python 3.12.0, pytest-7.4.2,...

type: bug
topic: config
plugin: stepwise