Skip to content

Commit eb2bb9b

Browse files
committed
let's try with bumping pytest to minimum 7.4
1 parent 2c68ff8 commit eb2bb9b

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

README.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ You can create additional fixtures using factories:
101101
.. note::
102102

103103
Each process fixture can be configured independently through factory arguments.
104-
When using chained fixtures (``postgresql_noproc(depends_on=...)``), the
105-
factory injects the dependency name into the runtime signature so
106-
pytest/xdist can order setup/teardown correctly. This may not show up in
107-
``--setup-show`` output, and some older pytest versions do not reflect the
108-
dynamic signature when displaying fixtures.
109104

110105
Pre-populating the database for tests
111106
-------------------------------------

oldest/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
pytest == 7.4; python_version >= "3.14"
2-
pytest == 7.2; python_version < "3.14"
1+
pytest == 7.4
32
port-for == 0.7.3
43
mirakuru == 2.6.0
54
psycopg == 3.0.0

pytest_postgresql/factories/noprocess.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# along with pytest-postgresql. If not, see <http://www.gnu.org/licenses/>.
1818
"""Fixture factory for existing postgresql server."""
1919

20-
import inspect
2120
import os
2221
from pathlib import Path
2322
from typing import Callable, Iterator
@@ -122,12 +121,4 @@ def postgresql_noproc_fixture(request: FixtureRequest) -> Iterator[NoopExecutor]
122121
janitor.load(load_element)
123122
yield noop_exec
124123

125-
if depends_on and depends_on.isidentifier():
126-
postgresql_noproc_fixture.__signature__ = inspect.Signature( # type: ignore[attr-defined]
127-
parameters=[
128-
inspect.Parameter("request", inspect.Parameter.POSITIONAL_OR_KEYWORD),
129-
inspect.Parameter(depends_on, inspect.Parameter.POSITIONAL_OR_KEYWORD),
130-
]
131-
)
132-
133124
return postgresql_noproc_fixture

0 commit comments

Comments
 (0)