From a357c7abc84e0382894a9b53d88ebb7ed2680686 Mon Sep 17 00:00:00 2001 From: Tyler Smart Date: Sun, 20 Aug 2023 20:55:30 -0600 Subject: [PATCH] Ignore dip in branch coverage (since py3.13+ isn't tested in CI) --- src/_pytest/doctest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_pytest/doctest.py b/src/_pytest/doctest.py index fcd48f893..49f8c9bfe 100644 --- a/src/_pytest/doctest.py +++ b/src/_pytest/doctest.py @@ -551,6 +551,9 @@ class DoctestModule(Module): # Type ignored because this is a private function. return super()._from_module(module, object) # type: ignore[misc] + else: # pragma: no cover + pass + if self.path.name == "conftest.py": module = self.config.pluginmanager._importconftest( self.path,