From 91f6892e6a68c55adc8c9113b427cf96e5c8ee22 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 14 Jul 2020 14:36:41 +0300 Subject: [PATCH] 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. --- testing/typing_checks.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testing/typing_checks.py 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