diff --git a/testing/typing_checks.py b/testing/typing_checks.py new file mode 100644 index 000000000..94c66ef51 --- /dev/null +++ b/testing/typing_checks.py @@ -0,0 +1,12 @@ +"""File for checking typing issues. + +This file is not executed, it is only checked by mypy to ensure that +none of the code triggers any mypy errors. +""" +import pytest + + +# Issue #7488. +@pytest.mark.xfail(raises=RuntimeError) +def check_mark_xfail_raises() -> None: + pass