Skip to content

Commit 0c76cde

Browse files
committed
Add lax no cover to both arms of tomllib version-gate
The else arm had it; the if arm did not, so on 3.10 the unreachable import tomllib line counted as a miss.
1 parent 7a8a38e commit 0c76cde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/examples/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from mcp.shared.version import LATEST_MODERN_VERSION
3333
from tests.interaction.transports._bridge import StreamingASGITransport
3434

35-
if sys.version_info >= (3, 11):
35+
if sys.version_info >= (3, 11): # pragma: lax no cover
3636
import tomllib
3737
else: # pragma: lax no cover
3838
import tomli as tomllib

0 commit comments

Comments
 (0)