pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
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...
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 ```...
- [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...
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...
#### 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/). ####...
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...
_ 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",...
- [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...
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...