summaryrefslogtreecommitdiff
path: root/.coveragerc
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-10 19:53:57 +0100
committerDaniel Hahler <git@thequod.de>2020-01-16 16:11:39 +0100
commit4630e2725e84bb07fc0527c2c293b500dfe585a6 (patch)
tree33f3a916afda932befcf28fba5ce61e909d83017 /.coveragerc
parent715f56dfbc432fbf99b8ad668e86a5063de58250 (diff)
downloadpytest-4630e2725e84bb07fc0527c2c293b500dfe585a6.tar.gz
Use `TYPE_CHECKING` instead of `False`
This allows for e.g. Jedi to infer types (it checks the name). It was only used to support Python 3.5.0/3.5.1, where this is is not available in the `typing` module. Ref: https://github.com/davidhalter/jedi/issues/1472 Uses `TYPE_CHECKING = False` in `_pytest.outcomes` to avoid having to work around circular import.
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
index ed1fb9759..fc2321e87 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -24,3 +24,5 @@ exclude_lines =
\#\s*pragma: no cover
^\s*raise NotImplementedError\b
^\s*return NotImplemented\b
+
+ ^\s*if TYPE_CHECKING: