Upgrading pytest-postgresql 9 to 10
Breaking9.1.1 → 10.0.0Breaking1Platform1Other3
BreakingUpgrade verdict
1 breaking change and a platform requirement change.
In plain terms
- You now need pytest 8.4 or newer, because older versions do not work with the optional async support.
- The package now works on Python 3.15 but no longer on Python 3.10, so users on 3.10 must upgrade Python.
Must act 2 items need code or config changes
Python requirement changed in 10.0.0: >=3.10 → >=3.11.
What you must change
Breaking1
Requires pytest>=8.4, the lowest version compatible with the async extra (pytest-asyncio>=1.4).
pytestpytest-asyncioPlatform1
Adds support for Python 3.15 and drops support for Python 3.10.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
constructor PostgreSQLExecutor(executable: str, host: str, port: int, datadir: str, unixsocketdir: str, logfile: str, startparams: str, dbname: str, *, shell: bool=…, timeout: Optional[int]=…, sleep: float=…, user: str=…, password: str | None=…, options: str=…, postgres_options: str=…) → constructor PostgreSQLExecutor(executable: str, host: str, port: int, datadir: str, unixsocketdir: str, logfile: str, startparams: str, dbname: str, *, shell: bool=…, timeout: int | None=…, sleep: float=…, user: str=…, password: str | None=…, options: str=…, postgres_options: str=…) - changed:
method PostgreSQLExecutor.start() -> T → method PostgreSQLExecutor.start() -> Self - changed:
method PostgreSQLExecutor.stop(sig: Optional[int]=…, exp_sig: Optional[int]=…) -> T → method PostgreSQLExecutor.stop(sig: int | None=…, exp_sig: int | None=…) -> Self
- changed:
async function retry_async(func: Callable[[], Awaitable[T]], timeout: int=…, possible_exception: Type[Exception]=…) -> T → async function retry_async(func: Callable[[], Awaitable[T]], timeout: int=…, possible_exception: type[Exception]=…) -> T - changed:
function retry(func: Callable[[], T], timeout: int=…, possible_exception: Type[Exception]=…) -> T → function retry(func: Callable[[], T], timeout: int=…, possible_exception: type[Exception]=…) -> T