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

Hi, This pull request attempts to resolve issue #11666 by implementing richer color terminal formatters from the pygments library. ## Description Many of the changes made were by referring to...

I recently saw https://github.com/pytest-dev/pytest/issues/5851#issuecomment-2094075457, which made me wonder if we could automatically detect similar cases and suggest using the `--ignore` flag or `norecursedirs` config option. Tracking the time spent in...

topic: reporting
topic: collection
type: performance

We've had a couple of related issue, but I couldn't find this specific case reported before. With the current git `main`: ``` platform linux -- Python 3.12.3, pytest-8.2.0.dev99+g1d322ffb4, pluggy-1.5.0 ```...

type: bug
topic: reporting
topic: rewrite

- [x] a detailed description of the bug or problem you are having - [x] output of `pip list` from the virtual environment you are using - [x] pytest and...

type: bug
topic: collection

When a test directory is nested within a symlinked directory, it can lead to errors when the 'rootdir' or the invocation directory targets the unresolved path, especially when the symlink...

type: bug
topic: collection

#### What's the problem this feature will solve? Reading the documentation in the evening can be quite uncomfortable due to the current (very bright) theme of [the docs website](https://docs.pytest.org/). ####...

type: docs

This issue is perhaps one of the weirdest and most obscure I've seen. My investigation began in jaraco/jaraco.xonsh#1. The summary is this: - In GitHub actions (only), during collection, when...

status: help wanted
topic: collection
type: regression

_ ERROR collecting test/distributed/_composable/fsdp/test_fully_shard_comm.py __ Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 389, in collect return list(collector.collect()) File "/usr/local/lib/python3.10/dist-packages/_pytest/unittest.py",...

type: regression
plugin: unittest

- [x] a detailed description of the bug or problem you are having Prior to 8.1.2 the following statement executed [without raising an exception (8.0.2)](https://github.com/pypa/setuptools/actions/runs/8837280341) in the setuptools CI, but...

type: bug
plugin: monkeypatch

As noted in https://github.com/pytest-dev/pytest/pull/12248, some modules can raise warnings at import time. If this happens during `AssertionRewritingHook`'s actions, then they get raised early and cannot be controlled by the pytest...

type: proposal
plugin: warnings