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

I have strange console output problem if I have test that uses pytest and [pywinauto](https://github.com/pywinauto/pywinauto). The problem can reproduced also by using [uiautomation](https://github.com/yinkaisheng/Python-UIAutomation-for-Windows). I think the common underlying nominator is...

type: bug
platform: windows

Showing inner exceptions in `ExceptionGroups` when using display options other than `--tb=native`. Currently, the solution is it falls back on using a native display to show the inner exceptions but...

We recently moved to Python 3.4 and when running our tests with pytest-xdist installed and in parallel with (-n) sometimes the tests fail with the below error. The traceback is...

type: bug
plugin: xdist

#### What's the problem this feature will solve? A convenient way to `assert` that two sequences contains the exact same elements regardless of their order. #### Describe the solution you'd...

type: proposal

Sometimes, you might have code which needs to raise *multiple* exceptions - for example if you retried an operation, had an error in async or cleanup code, or found [multiple...

type: bug
status: help wanted
topic: reporting
topic: tracebacks

Link to a failing build: https://github.com/pytest-dev/pytest/runs/6860982658 ``` FAILED testing/test_debugging.py::TestPDB::test_pdb_interaction_capturing_simple - pexpect.exceptions.TIMEOUT: Timeout exceeded. FAILED testing/test_debugging.py::TestPDB::test_pdb_interaction_capturing_twice - pexpect.exceptions.TIMEOUT: Timeout exceeded. FAILED testing/test_debugging.py::TestPDB::test_pdb_with_injected_do_debug - assert False FAILED testing/test_debugging.py::TestDebuggingBreakpoints::test_pdb_not_altered - pexpect.exceptions.TIMEOUT: Timeout exceeded....

type: infrastructure
platform: linux
plugin: debugging

Below is python and pytest version information platform linux -- Python 3.8.6, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python3 Below is the error message, it worked fine when execute tests one by one...

status: needs information
plugin: logging

`Caplog` start capturing, but in a specific place capturing is stopped. It reproduces in one test and does not reproduce in the rest. Additional I need `caplog.set_level('DEBUG')` for this test...

plugin: logging

Currently pytest will keep the last 3 _root_ temporary directories for each testing session, for all tests. This proposal is to change this behavior to only keep the directories for...

type: proposal
plugin: tmpdir