From ff12e083c596d871f10af7199958e10df82aee1c Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Thu, 19 Oct 2023 18:25:56 +0100 Subject: [PATCH] doc exc param to importorskip --- src/_pytest/outcomes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index ddcdbcacc..25aabf2db 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -266,6 +266,9 @@ def importorskip( :param reason: If given, this reason is shown as the message when the module cannot be imported. + :param exc: + Either ImportError or ModuleNotFoundError, the exception to catch + when importing. :returns: The imported module. This should be assigned to its canonical name.