]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/smb: filter out python version blocks from coverage
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 30 Apr 2024 16:43:16 +0000 (12:43 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 2 May 2024 21:06:34 +0000 (17:06 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/smb/proto.py

index 00fe367bb4c87c89ce8bde99d0cc4cc6dadbf9aa..6af80866cff32518c2d1d8622c2342a1e6481a10 100644 (file)
@@ -18,7 +18,7 @@ from ceph.deployment.service_spec import SMBSpec
 
 # this uses a version check as opposed to a try/except because this
 # form makes mypy happy and try/except doesn't.
-if sys.version_info >= (3, 8):
+if sys.version_info >= (3, 8):  # pragma: no cover
     from typing import Protocol
 elif TYPE_CHECKING:  # pragma: no cover
     # typing_extensions will not be available for the real mgr server
@@ -29,7 +29,7 @@ else:  # pragma: no cover
         pass
 
 
-if sys.version_info >= (3, 11):
+if sys.version_info >= (3, 11):  # pragma: no cover
     from typing import Self
 elif TYPE_CHECKING:  # pragma: no cover
     # typing_extensions will not be available for the real mgr server