Skip to content

Commit 91f6892

Browse files
committed
testing: add a file for checking no mypy errors
We probably something a bit more elaborate in the future but for now it's something to verify fixes and catch regressions.
1 parent 358150c commit 91f6892

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

testing/typing_checks.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""File for checking typing issues.
2+
3+
This file is not executed, it is only checked by mypy to ensure that
4+
none of the code triggers any mypy errors.
5+
"""
6+
import pytest
7+
8+
9+
# Issue #7488.
10+
@pytest.mark.xfail(raises=RuntimeError)
11+
def check_mark_xfail_raises() -> None:
12+
pass

0 commit comments

Comments
 (0)