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

Do not import duplicated modules with --importmode=importlib (#12074)

Regression brought up by #11475.

03e54712dd123138aa4c1035a027e17d0dd9a86c authored 11 months ago
Merge pull request #12075 from nicoddemus/yank-8.1.0

Yank version 8.1.0

18c0e5075ff176f9bd401ea00b95c68b1b74a905 authored 11 months ago
Yank version 8.1.0

Related to #12069

6ee02a3e6ca184288bd8fbe5f6d2e76e09facb9c authored 11 months ago
Merge pull request #12070 from RonnyPfannschmidt/lift

add myself as tidelifter

0951cbc6e4880ee7dfc9b7e56948d83ee086e74b authored 11 months ago
add myself to tidelift

37b340109130c679cddcf2bc3eb1e813827d6acb authored 11 months ago
Merge pull request #12055 from bluetech/cherry-pick-release

Cherry-pick 8.1.0 release notes

71849cc05c4fffe2267a6844393be3adb8248820 authored 11 months ago
Cherry-pick 8.1.0 release notes

(cherry picked from commit 0a536810dc5f51dac99bdb90dde06704b5aa034e)

e410705561673380d535a2ae32a4be42e115cf2c authored 11 months ago
Merge pull request #12038 from bluetech/fixtures-rm-arg2index

fixtures: avoid mutable arg2index state in favor of looking up the request chain

00043f7f1047b29fdaeb18e169fe9d6146988cb8 authored 11 months ago
Merge pull request #12048 from bluetech/fixture-teardown-excgroup

fixtures: use exception group when multiple finalizers raise in fixture teardown

f4e10251a4a003495b5228cea421d4de5fa0ce89 authored 11 months ago
Merge pull request #12051 from jakkdl/test_debugging_pythonbreakpoint

[minor/QoL] monkeypatch.delenv PYTHONBREAKPOINT in two tests that previously failed/skipped

43492f5707b38dab9b62dfb829bb41a13579629f authored 11 months ago
[automated] Update plugin list (#12049)

Co-authored-by: pytest bot <[email protected]>

82fe28dae4eec900123175cee87245f37b964e5c authored 11 months ago
monkeypatch.delenv PYTHONBREAKPOINT in two tests that previously failed/skipped

5e2ee7175c145f84ff9882be9496abb56e6e56f2 authored 11 months ago
Merge pull request #11997 from nicoddemus/11475-importlib

Change importlib to first try to import modules using the standard mechanism

89ee4493ccbcd118349082cd78eb52a761683120 authored 11 months ago
Do not collect symlinked tests under Windows (#12050)

The check for short paths under Windows via os.path.samefile, introduced in #11936, also found s...

8248946a552635f5751a58c7a6dfd24e98db7404 authored 11 months ago
fixtures: use exception group when multiple finalizers raise in fixture teardown

Previously, if more than one fixture finalizer raised, only the first
was reported, and the othe...

434282e17f5f1f4fcc1464a0a0921cf19804bdd7 authored 11 months ago
pathlib: extract a function `_import_module_using_spec`

Will be reused.

4dea18308bafafb0be0b2d07e02328051c3095d5 authored 11 months ago
testing/test_doctest: make `test_importmode` more realistic

300ceb435e9c5dc3f03698a281eb879eee610842 authored 11 months ago
doc: document consider_namespace_packages option

d6134bc21e27efee7a2e264bd089e6c223515904 authored 11 months ago
Add consider_namespace_packages ini option

Fix #11475

111c0d910e15afb9e1ed1f6862e1637594eaa076 authored 11 months ago
testing/test_pathlib: add an importlib test

Ensure the implementation isn't changed to trigger such a bug.

dcf01fd39ada7c6834467dde64fcab00910a4489 authored 11 months ago
doc: update and improve import mode docs

5746b8e69620e39d69a04383cff2ca9d54a7e41f authored 11 months ago
pathlib: handle filenames starting with `.` in `module_name_from_path`

58674264553392e1d2c2e88ea7de5460e01cd6df authored 11 months ago
testing/test_pathlib: remove `test_issue131_on__init__`

The test seems wrong, and we haven't been able to figure out what it's
trying to test (the origi...

887e251abbea9d59be41972b3642ffd5748a587f authored 11 months ago
pathlib: consider namespace packages in `resolve_pkg_root_and_module_name`

This applies to `append` and `prepend` import modes; support for
`importlib` mode will be added ...

067daf9f7d7072a4e199dd51b738193be370a1c7 authored 11 months ago
Change importlib to first try to import modules using the standard mechanism

As detailed in
https://github.com/pytest-dev/pytest/issues/11475#issuecomment-1937043670,
curren...

c85fce39b60a6cc3537e9da3e7a4f4946cfe4d49 authored 11 months ago
pathlib: import signature and docs for import_path

199d4e2b7387cb38f54fc578c1521b5b1eea5db2 authored 11 months ago
pathlib: extract a function `resolve_pkg_root_and_module_name`

Will be reused.

7524e60d8f96f74deb6160a15beb0d20712cb901 authored 11 months ago
testing/test_pathlib: parametrize namespace package option

Test with namespace packages support even when it will not find namespace packages to ensure it ...

aac720abc900631ebd3d1807dcaf0c297d578113 authored 11 months ago
Merge pull request #12043 from bluetech/pyargs-root

Fix collection failures due to permission errors when using `--pyargs`

6ed005161d329cc079e6439a17e7ac935c7c02e0 authored 11 months ago
main: only include package parents in collection tree for --pyargs collection arguments

(diff better viewed ignoring whitespace)

In pytest<8, the collection tree for `pyargs` argument...

31026a2df2f05228887f99e902f5e6d861710451 authored 11 months ago
main: add `module_name` to `CollectionArgument`

This is available when the argument is a `--pyargs` argument (resolved
from a python module path...

1612d4e393db42406a67430f848321999e0241b6 authored 11 months ago
main: slight refactor to collection argument parents logic

No logical change, preparation for the next commit.

f20e32c98221c6d4cc22013f365e2e4eea475015 authored 11 months ago
main: model the result of `resolve_collection_arguments` as a dataclass

In preparation of adding more info to it.

5e0d11746ce696af1ac754f102c1399aed846554 authored 11 months ago
Merge pull request #12042 from donhui/docs-0301

docs: update plugins number

b6bf58abe8f02f9c0d30763fcb8ed346b5621e0b authored 11 months ago
main: add missing `import importlib.util`

Used in `resolve_collection_argument`. It's implicitly imported by some
other import, but some t...

ff4c3b2873296ee5bfffbcc86e728de830d5d409 authored 11 months ago
docs: update plugins number

4db5e537091567b1a9a98707c0b8e244d01f3db5 authored 11 months ago
Merge pull request #12037 from bluetech/fixtures-getnextfixturedef-parent

fixtures: remove unneeded optimization from `_getnextfixturedef`

c967d508d62ad9e073d495ddfdca437188f2283e authored 11 months ago
fixtures: add `_iter_chain` helper method

Will be reused in the next commit.

c83c1c4bda7e92bcda00dad29798b8fc73028997 authored 11 months ago
fixtures: avoid mutable `arg2index` state in favor of looking up the request chain

pytest allows a fixture to request its own name (directly or
indirectly), in which case the fixt...

bd45ccd2ca399121fa91baa3fa0d25c2c36b6671 authored 11 months ago
fixtures: remove unneeded optimization from `_getnextfixturedef`

According to my understanding, this code, which handles obtaining the
relevant fixturedefs when ...

686f9e0720da7d50ea94fe54dbea85da50e300af authored 11 months ago
build(deps): Bump anyio[curio,trio] in /testing/plugins_integration (#12033)

Bumps [anyio[curio,trio]](https://github.com/agronholm/anyio) from 4.2.0 to 4.3.0.
- [Release n...

98b008ff6ca663723767f807cb730cc6833c9034 authored 11 months ago
Merge pull request #12031 from pytest-dev/update-plugin-list/patch-affc652f1

[automated] Update plugin list

73edefdd649b3fe23e29d884ef5982876db7e18b authored 11 months ago
Fix mention of the prefix for pytest plugins in `plugin_list`

ffd727e9d60a638f915f49b25f89b9a38b8b9700 authored 11 months ago
[automated] Update plugin list

b6eb985d558e626f4820d7681c72120848b5dc60 authored 11 months ago
Merge pull request #12030 from bluetech/cherry-pick-release

Cherry pick 8.0.2 release notes

affc652f1c4edd1bc38aae7fc01cce1062f49b36 authored 11 months ago
Cherry pick 8.0.2 release notes

(cherry picked from commit e53f79893212391c0bada5f1628b977371a09434)

7460b1aa3132d3ecfd47e399ec248f4097986aa5 authored 11 months ago
New verbosity_test_case ini option (#11653)

Allow for the output of test case execution to be controlled independently from the application ...

84bd31de649eea0f7ea1cb5d9269fa184dc59a97 authored 11 months ago
Merge pull request #12027 from bluetech/sys-last-exc

runner: add support for `sys.last_exc` for post-mortem debugging on Python>=3.12

a2a9aa6cde406e218d85b650ec21b13fb1b9dfd4 authored 11 months ago
runner: add support for `sys.last_exc` for post-mortem debugging on Python>=3.12

Fix #11850

c09f74619b4126d16706d2a35d860838d1756d49 authored 11 months ago
Merge pull request #12023 from bluetech/fixtures-cleanups-2

fixtures: remove an unneeded suppress

b510adf9efcd21e7ff2ab8e93e925f3e8363bb7d authored 11 months ago
Merge pull request #12022 from bluetech/revert-11721

Revert "Fix teardown error reporting when `--maxfail=1` (#11721)"

93cd7ba857471dc9f2322246f37ec5eb10cbc91c authored 11 months ago
Fix collection of short paths on Windows (#11936)

Passing a short path in the command line was causing the matchparts check to fail, because ``Pat...

8d9b95dcdb131716b72b300abe969d4bf5209bd9 authored 11 months ago
fixtures: remove an unneeded suppress

In `CallSpec2.setmulti` the `params` and `_arg2scope` dicts are always
set together.

Further, t...

ad651ddfce7b618d3238683aa64c46df35648664 authored 11 months ago
Revert "Fix teardown error reporting when `--maxfail=1` (#11721)"

Fix #12021.
Reopens #11706.

This reverts commit 12b9bd580198edf88a795b692cbd6a1a05fe408a.

This...

00d9640abc783e714881a2380af22ed77462ab21 authored 11 months ago
Add typing to `from_parent` return values (#11916)

Up to now the return values of `from_parent` were untyped, this is an
attempt to make it work w...

010ce2ab0f6d2e90f295d4e3f9e725d31dd5721d authored 11 months ago
ENH: Improve warning stacklevel (#12014)

* ENH: Improve warning stacklevel

* TST: Add test

* TST: Ping

* [pre-commit.ci] auto fi...

1640f2e4544e63da6bf7c6587040897ca0810770 authored 11 months ago
Remove Anthony from Tidelift participants (#12020)

As discussed in the core development channels, @asottile asked to no longer be a Tidelift partic...

59e9a58cc9c97386f949e909716e8abde7fc31b2 authored 11 months ago
Merge pull request #12019 from bluetech/fixtures-simplify

fixtures: remove a no longer needed sort

691d8fcafb4b466766ecbef7b8033d9d431c7bb7 authored 11 months ago
Add --log-file-mode option to the logging plugin, enabling appending to log-files (#11979)

Previously, the mode was hard-coded to be "w" which truncates the file before logging.

Co-aut...

c5c729e27aa1e866af37f2ee97b1c68e9463070c authored 11 months ago
fixtures: remove a no longer needed sort

Dicts these days preserve order, so the sort is no longer needed to
achieve determinism.

As sho...

9bea1be2157e8467712aa1de46312ed0827741d8 authored 11 months ago
python: small code cleanup

79def57cc65e18bae0f5a6ad84c433e210e97126 authored 11 months ago
fixtures: remove a level of indentation

A bit easier to follow.

2007cf629663055931947e60f630fa1f8f0bef5a authored 11 months ago
Merge pull request #12013 from bluetech/doctest-test

testing: add a regression test for `setup_module` + `--doctest-modules`

8a410d0ba60bca7073bf18a1503c59a3b5445780 authored 11 months ago
testing: add a regression test for `setup_module` + `--doctest-modules`

Refs #12011 (only fails on 8.0.1, not main).

a37cff3ca8be06dc1154a54bbc32c32e82eef4ee authored 11 months ago
[pre-commit.ci] pre-commit autoupdate (#12012)

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2](https://github.com/astral-sh...

95f21f96cc2252d9a3162f63ac9c26d4ab97abf5 authored 11 months ago
Clarify PytestPluginManager._is_in_confcutdir (#12007)

Follow up to #12006, let's put some comments clarifying `is_in_confcutdir` semantics, as this is...

998fee1679892f62cc9bd727e9e17911d746ed64 authored 11 months ago
Allow Sphinx 7.x (#12002)

Thanks to https://github.com/pytest-dev/pytest/issues/11988#issuecomment-1950318888, the problem...

40011b838b67691c76302f3cd8d18862f37b9370 authored 11 months ago
Merge pull request #12003 from pytest-dev/update-plugin-list/patch-cefb3e227

[automated] Update plugin list

b37696703b356380339aadf9d4e4b80450fb394c authored 11 months ago
Fix 'pytest_' mention: it was being considered a rst reference

abf6a60567c118e52de92f881b8b4210dd1ceafa authored 11 months ago
[automated] Update plugin list

52da8dd66c9eaba3c8557f80fc9a5b87a4ea03b1 authored 11 months ago
Disallow Sphinx 6 and 7 (#12000)

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 ago
Revert sys.platform verification to simple comparison (#11998)

As the comment above it states, we need to keep the comparison simple so mypy can understand it,...

5f241f388be3aaf4faa5e5e0029548863413014f authored 11 months ago
Merge pull request #11996 from bluetech/getstatementrange-index-error

code: fix `IndexError` crash in `getstatementrange_ast`

aebeb33137c556d3ddcc9316a014f76933ee02c2 authored 11 months ago
code: fix `IndexError` crash in `getstatementrange_ast`

Fix #11953.

9f13d41d7bf773d9a64ff84f7c26fec7fbd431cf authored 11 months ago
Merge pull request #11995 from bluetech/cherry-pick-release

Cherry pick 8.0.1 release notes

984478109f2e597f1eee86d69cb29b5de67cb051 authored 11 months ago
Merge pull request #11993 from pytest-dev/release-8.0.1

Prepare release 8.0.1

(cherry picked from commit 68524d48586e7f8d070fc1146e5ff90e770d0382)

22b541e4eb46d53370938da239c686eaecbbf8e4 authored 11 months ago
Merge pull request #11991 from bluetech/warns-fix

recwarn: fix pytest.warns handling of Warnings with multiple arguments

fbe18fc7a9a44982bedc81c1d25f63e6d20fffab authored 11 months ago
recwarn: fix pytest.warns handling of Warnings with multiple arguments

Fix #11906

9b838f491f895c8b46778c38953295364999aaee authored 11 months ago
Merge pull request #11959 from eerovaher/warn-message-type

Allow using `warnings.warn()` with a `Warning`

6ef0cf150ab234eaa631e54b3122e2f01571eafb authored 11 months ago
Allow using `warnings.warn()` with Warnings

Test:

`warnings.warn()` expects that its first argument is a `str` or a
`Warning`, but since 94...

0475b1c925d40930172d5e198861864905a2b15d authored 11 months ago
recwarn: minor style improvements

In preparation for next commit.

dcf9da92be44e5347fdb559c6717c031daae2b25 authored 11 months ago
Merge pull request #11989 from bluetech/plugin-list-underscore

scripts/update-plugin-list: include packages starting with "pytest_" (underscore)

8e56795b770a3f56578b2d820c878e2af9803c30 authored 11 months ago
Merge pull request #11920 from bluetech/warn-skip

recwarn: let base exceptions propagate through `pytest.warns` again

718cd400152d64e6e6d47dc96f61bf1e6c06011a authored 11 months ago
recwarn: let base exceptions propagate through `pytest.warns` again

Fix #11907.

288201b8f579efd3ebc4ca243966444f99686d9d authored 11 months ago
scripts/update-plugin-list: include packages starting with "pytest_" (underscore)

Fix #11985.

c6313a06fbc837316bddda64e97b23ad6cc44afd authored 11 months ago
build(deps): Bump codecov/codecov-action from 3 to 4 (#11921)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Relea...

5d7a5a9343ec7d675a9599312f8055e2a81cc1db authored 11 months ago
build(deps): Bump peter-evans/create-pull-request from 5.0.2 to 6.0.0 (#11922)

Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from...

cbb5c82c3952b90178c7f3185f2267a0658528e9 authored 11 months ago
Consider pyproject.toml files for config if no other config files were found (#11962)

Today `pyproject.toml` is the standard for declaring a Python project root, so seems reasonable ...

acafd003aa643765abed144c618ab13cab24ecc1 authored 11 months ago
Consider paths and pathlists relative to cwd in case of an absent ini-file (#11963)

Previously this would trigger an `AssertionError`.

While it could be considered a bug-fix, bu...

46e6fb12c7d6d95750959964c1f59039dd51b579 authored 11 months ago
Add `logot` to plugin list (#11972)

fe7907d78cd21a111542e8bf445526922bda9237 authored 11 months ago
Merge pull request #11957 from bluetech/fix-session-collect-order

main: fix reversed collection order in Session

5bb1363435a8cb3e2010505dbeb1e015c36beed6 authored 11 months ago
[pre-commit.ci] pre-commit autoupdate (#11967)

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.2.1](https://github.com/astral-sh/...

ca84327f158d869eb3d56e242314b3eeb906151d authored 11 months ago
build(deps): Bump pytest-asyncio in /testing/plugins_integration (#11965)

Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.23.3 to 0.23.5.
- [...

3b798e54221f1895a983000c7e5bc8afdacd5011 authored 11 months ago
Merge pull request #11961 Add some autofixable refactor rules from pylint

526b9712215d5748bfa258c834968f38fea560bd authored 11 months ago
[automated] Update plugin list (#11964)

Co-authored-by: pytest bot <[email protected]>

23dfb52974af5d006a2dea3de5b9b6035cba6a65 authored 12 months ago
[ruff] Add unwanted pylint message to the ignore list

7da04c963f7e134c86461b252828ebb7594151a5 authored 12 months ago
[performance] Micro-optimization in '_traceback_filter'

Should be around 40% faster according to this simplified small benchmark:

python -m timeit "a=[...

b922270ce7e6a7c0bd521f1eab3ea82b6041537d authored 12 months ago
[ruff] Add 'consider-using-in' from pylint

See https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/consider-using-in.html
...

1180348303599f835d37b2028288ce81b90b85c5 authored 12 months ago
Improve error message when using @pytest.fixture twice (#11670)

* Improve error message when using @pytest.fixture twice

While obvious in hindsight, this err...

7690a0ddf15785f0af0e9a4cf8524379c53cd061 authored 12 months ago
Merge pull request #11956 from bluetech/ruff-warning

Fix ruff deprecation warning + enable few more rules

29a5f94428fe2cebf029c8ef9812bd8fc65adcba authored 12 months ago