Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/pytest-dev/pytest
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://github.com/pytest-dev/pytest
Regression brought up by #11475.
03e54712dd123138aa4c1035a027e17d0dd9a86c authored 11 months agoYank version 8.1.0
18c0e5075ff176f9bd401ea00b95c68b1b74a905 authored 11 months agoRelated to #12069
6ee02a3e6ca184288bd8fbe5f6d2e76e09facb9c authored 11 months agoadd myself as tidelifter
0951cbc6e4880ee7dfc9b7e56948d83ee086e74b authored 11 months ago37b340109130c679cddcf2bc3eb1e813827d6acb authored 11 months ago
Cherry-pick 8.1.0 release notes
71849cc05c4fffe2267a6844393be3adb8248820 authored 11 months ago(cherry picked from commit 0a536810dc5f51dac99bdb90dde06704b5aa034e)
e410705561673380d535a2ae32a4be42e115cf2c authored 11 months agofixtures: avoid mutable arg2index state in favor of looking up the request chain
00043f7f1047b29fdaeb18e169fe9d6146988cb8 authored 11 months agofixtures: use exception group when multiple finalizers raise in fixture teardown
f4e10251a4a003495b5228cea421d4de5fa0ce89 authored 11 months ago[minor/QoL] monkeypatch.delenv PYTHONBREAKPOINT in two tests that previously failed/skipped
43492f5707b38dab9b62dfb829bb41a13579629f authored 11 months agoCo-authored-by: pytest bot <[email protected]>
82fe28dae4eec900123175cee87245f37b964e5c authored 11 months ago5e2ee7175c145f84ff9882be9496abb56e6e56f2 authored 11 months ago
Change importlib to first try to import modules using the standard mechanism
89ee4493ccbcd118349082cd78eb52a761683120 authored 11 months agoThe check for short paths under Windows via os.path.samefile, introduced in #11936, also found s...
8248946a552635f5751a58c7a6dfd24e98db7404 authored 11 months ago
Previously, if more than one fixture finalizer raised, only the first
was reported, and the othe...
Will be reused.
4dea18308bafafb0be0b2d07e02328051c3095d5 authored 11 months ago300ceb435e9c5dc3f03698a281eb879eee610842 authored 11 months ago
d6134bc21e27efee7a2e264bd089e6c223515904 authored 11 months ago
Fix #11475
111c0d910e15afb9e1ed1f6862e1637594eaa076 authored 11 months agoEnsure the implementation isn't changed to trigger such a bug.
dcf01fd39ada7c6834467dde64fcab00910a4489 authored 11 months ago5746b8e69620e39d69a04383cff2ca9d54a7e41f authored 11 months ago
58674264553392e1d2c2e88ea7de5460e01cd6df authored 11 months ago
The test seems wrong, and we haven't been able to figure out what it's
trying to test (the origi...
This applies to `append` and `prepend` import modes; support for
`importlib` mode will be added ...
As detailed in
https://github.com/pytest-dev/pytest/issues/11475#issuecomment-1937043670,
curren...
199d4e2b7387cb38f54fc578c1521b5b1eea5db2 authored 11 months ago
Will be reused.
7524e60d8f96f74deb6160a15beb0d20712cb901 authored 11 months agoTest with namespace packages support even when it will not find namespace packages to ensure it ...
aac720abc900631ebd3d1807dcaf0c297d578113 authored 11 months agoFix collection failures due to permission errors when using `--pyargs`
6ed005161d329cc079e6439a17e7ac935c7c02e0 authored 11 months ago(diff better viewed ignoring whitespace)
In pytest<8, the collection tree for `pyargs` argument...
31026a2df2f05228887f99e902f5e6d861710451 authored 11 months ago
This is available when the argument is a `--pyargs` argument (resolved
from a python module path...
No logical change, preparation for the next commit.
f20e32c98221c6d4cc22013f365e2e4eea475015 authored 11 months agoIn preparation of adding more info to it.
5e0d11746ce696af1ac754f102c1399aed846554 authored 11 months agodocs: update plugins number
b6bf58abe8f02f9c0d30763fcb8ed346b5621e0b authored 11 months ago
Used in `resolve_collection_argument`. It's implicitly imported by some
other import, but some t...
4db5e537091567b1a9a98707c0b8e244d01f3db5 authored 11 months ago
fixtures: remove unneeded optimization from `_getnextfixturedef`
c967d508d62ad9e073d495ddfdca437188f2283e authored 11 months agoWill be reused in the next commit.
c83c1c4bda7e92bcda00dad29798b8fc73028997 authored 11 months ago
pytest allows a fixture to request its own name (directly or
indirectly), in which case the fixt...
According to my understanding, this code, which handles obtaining the
relevant fixturedefs when ...
Bumps [anyio[curio,trio]](https://github.com/agronholm/anyio) from 4.2.0 to 4.3.0.
- [Release n...
[automated] Update plugin list
73edefdd649b3fe23e29d884ef5982876db7e18b authored 11 months agoffd727e9d60a638f915f49b25f89b9a38b8b9700 authored 11 months ago
b6eb985d558e626f4820d7681c72120848b5dc60 authored 11 months ago
Cherry pick 8.0.2 release notes
affc652f1c4edd1bc38aae7fc01cce1062f49b36 authored 11 months ago(cherry picked from commit e53f79893212391c0bada5f1628b977371a09434)
7460b1aa3132d3ecfd47e399ec248f4097986aa5 authored 11 months agoAllow for the output of test case execution to be controlled independently from the application ...
84bd31de649eea0f7ea1cb5d9269fa184dc59a97 authored 11 months agorunner: add support for `sys.last_exc` for post-mortem debugging on Python>=3.12
a2a9aa6cde406e218d85b650ec21b13fb1b9dfd4 authored 11 months agoFix #11850
c09f74619b4126d16706d2a35d860838d1756d49 authored 11 months agofixtures: remove an unneeded suppress
b510adf9efcd21e7ff2ab8e93e925f3e8363bb7d authored 11 months agoRevert "Fix teardown error reporting when `--maxfail=1` (#11721)"
93cd7ba857471dc9f2322246f37ec5eb10cbc91c authored 11 months agoPassing a short path in the command line was causing the matchparts check to fail, because ``Pat...
8d9b95dcdb131716b72b300abe969d4bf5209bd9 authored 11 months ago
In `CallSpec2.setmulti` the `params` and `_arg2scope` dicts are always
set together.
Further, t...
ad651ddfce7b618d3238683aa64c46df35648664 authored 11 months ago
Fix #12021.
Reopens #11706.
This reverts commit 12b9bd580198edf88a795b692cbd6a1a05fe408a.
This...
00d9640abc783e714881a2380af22ed77462ab21 authored 11 months ago
Up to now the return values of `from_parent` were untyped, this is an
attempt to make it work w...
* ENH: Improve warning stacklevel
* TST: Add test
* TST: Ping
* [pre-commit.ci] auto fi...
1640f2e4544e63da6bf7c6587040897ca0810770 authored 11 months agoAs discussed in the core development channels, @asottile asked to no longer be a Tidelift partic...
59e9a58cc9c97386f949e909716e8abde7fc31b2 authored 11 months agofixtures: remove a no longer needed sort
691d8fcafb4b466766ecbef7b8033d9d431c7bb7 authored 11 months agoPreviously, the mode was hard-coded to be "w" which truncates the file before logging.
Co-aut...
c5c729e27aa1e866af37f2ee97b1c68e9463070c authored 11 months ago
Dicts these days preserve order, so the sort is no longer needed to
achieve determinism.
As sho...
9bea1be2157e8467712aa1de46312ed0827741d8 authored 11 months ago79def57cc65e18bae0f5a6ad84c433e210e97126 authored 11 months ago
A bit easier to follow.
2007cf629663055931947e60f630fa1f8f0bef5a authored 11 months agotesting: add a regression test for `setup_module` + `--doctest-modules`
8a410d0ba60bca7073bf18a1503c59a3b5445780 authored 11 months agoRefs #12011 (only fails on 8.0.1, not main).
a37cff3ca8be06dc1154a54bbc32c32e82eef4ee authored 11 months ago
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2](https://github.com/astral-sh...
Follow up to #12006, let's put some comments clarifying `is_in_confcutdir` semantics, as this is...
998fee1679892f62cc9bd727e9e17911d746ed64 authored 11 months agoThanks to https://github.com/pytest-dev/pytest/issues/11988#issuecomment-1950318888, the problem...
40011b838b67691c76302f3cd8d18862f37b9370 authored 11 months ago[automated] Update plugin list
b37696703b356380339aadf9d4e4b80450fb394c authored 11 months agoabf6a60567c118e52de92f881b8b4210dd1ceafa authored 11 months ago
52da8dd66c9eaba3c8557f80fc9a5b87a4ea03b1 authored 11 months ago
Using Sphinx 6.x and 7.x the search bar disappears. Restrict to Sphinx 5.x for now until we find...
cefb3e2277b6ea24acc7b1088f80ef0f9e9f3858 authored 11 months agoAs the comment above it states, we need to keep the comparison simple so mypy can understand it,...
5f241f388be3aaf4faa5e5e0029548863413014f authored 11 months agocode: fix `IndexError` crash in `getstatementrange_ast`
aebeb33137c556d3ddcc9316a014f76933ee02c2 authored 11 months agoFix #11953.
9f13d41d7bf773d9a64ff84f7c26fec7fbd431cf authored 11 months agoCherry pick 8.0.1 release notes
984478109f2e597f1eee86d69cb29b5de67cb051 authored 11 months agoPrepare release 8.0.1
(cherry picked from commit 68524d48586e7f8d070fc1146e5ff90e770d0382)
22b541e4eb46d53370938da239c686eaecbbf8e4 authored 11 months agorecwarn: fix pytest.warns handling of Warnings with multiple arguments
fbe18fc7a9a44982bedc81c1d25f63e6d20fffab authored 11 months agoFix #11906
9b838f491f895c8b46778c38953295364999aaee authored 11 months agoAllow using `warnings.warn()` with a `Warning`
6ef0cf150ab234eaa631e54b3122e2f01571eafb authored 11 months agoTest:
`warnings.warn()` expects that its first argument is a `str` or a
`Warning`, but since 94...
In preparation for next commit.
dcf9da92be44e5347fdb559c6717c031daae2b25 authored 11 months agoscripts/update-plugin-list: include packages starting with "pytest_" (underscore)
8e56795b770a3f56578b2d820c878e2af9803c30 authored 11 months agorecwarn: let base exceptions propagate through `pytest.warns` again
718cd400152d64e6e6d47dc96f61bf1e6c06011a authored 11 months agoFix #11907.
288201b8f579efd3ebc4ca243966444f99686d9d authored 11 months agoFix #11985.
c6313a06fbc837316bddda64e97b23ad6cc44afd authored 11 months ago
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Relea...
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from...
cbb5c82c3952b90178c7f3185f2267a0658528e9 authored 11 months agoToday `pyproject.toml` is the standard for declaring a Python project root, so seems reasonable ...
acafd003aa643765abed144c618ab13cab24ecc1 authored 11 months agoPreviously this would trigger an `AssertionError`.
While it could be considered a bug-fix, bu...
46e6fb12c7d6d95750959964c1f59039dd51b579 authored 11 months agofe7907d78cd21a111542e8bf445526922bda9237 authored 11 months ago
main: fix reversed collection order in Session
5bb1363435a8cb3e2010505dbeb1e015c36beed6 authored 11 months ago
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.2.1](https://github.com/astral-sh/...
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.23.3 to 0.23.5.
- [...
526b9712215d5748bfa258c834968f38fea560bd authored 11 months ago
Co-authored-by: pytest bot <[email protected]>
23dfb52974af5d006a2dea3de5b9b6035cba6a65 authored 12 months ago7da04c963f7e134c86461b252828ebb7594151a5 authored 12 months ago
Should be around 40% faster according to this simplified small benchmark:
python -m timeit "a=[...
b922270ce7e6a7c0bd521f1eab3ea82b6041537d authored 12 months ago
See https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/consider-using-in.html
...
* Improve error message when using @pytest.fixture twice
While obvious in hindsight, this err...
7690a0ddf15785f0af0e9a4cf8524379c53cd061 authored 12 months agoFix ruff deprecation warning + enable few more rules
29a5f94428fe2cebf029c8ef9812bd8fc65adcba authored 12 months ago