Skip to content

Commit 770e52b

Browse files
committed
Remove capsule function call with None
1 parent 36ab783 commit 770e52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_stubgen_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
)
1616
def test_stubgen(tmp_path: Path, caplog: pytest.LogCaptureFixture) -> None:
1717
"""Show stubgen/mypy errors for CapsuleType (not available in Python < 3.13)."""
18-
assert m.identity_capsule(None) is None
18+
assert hasattr(m, "identity_capsule")
1919
# Generate stub into temporary directory
2020
pybind11_stubgen.main(
2121
[

0 commit comments

Comments
 (0)