Skip to content

Commit 901cb02

Browse files
committed
Added skipif for Python 3.14 since mypy failes here
1 parent 770e52b commit 901cb02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_stubgen.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
from __future__ import annotations
22

3+
import sys
34
from pathlib import Path
45

56
import pybind11_stubgen
7+
import pytest
68
from mypy import api
79

810
from pybind11_tests import stubgen as m
911

1012

13+
@pytest.mark.xfail(
14+
sys.version_info >= (3, 14), reason="mypy does not support Python 3.14+ yet"
15+
)
1116
def test_stubgen(tmp_path: Path) -> None:
1217
assert m.add_int(1, 2) == 3
1318
# Generate stub into temporary directory

0 commit comments

Comments
 (0)