From 6e40458fc1cfece2fe7ddaa353478a07287fc433 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Thu, 19 Oct 2023 18:25:43 +0100 Subject: [PATCH] make exc kwonly --- src/_pytest/outcomes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index 93067b6c2..ddcdbcacc 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -252,6 +252,7 @@ def importorskip( modname: str, minversion: Optional[str] = None, reason: Optional[str] = None, + *, exc: Type[ImportError] = ImportError, ) -> Any: """Import and return the requested module ``modname``, or skip the