summaryrefslogtreecommitdiff
path: root/numpy/typing/tests/test_typing.py
diff options
context:
space:
mode:
authorKevin Sheppard <kevin.k.sheppard@gmail.com>2021-02-18 11:04:17 +0000
committerKevin Sheppard <kevin.k.sheppard@gmail.com>2021-02-24 10:40:30 +0000
commit95d1f23d3bbbadfe218fabc427f74353ad8aaa7e (patch)
tree0141ea5936f915d72e81b776a11291a3fbc58131 /numpy/typing/tests/test_typing.py
parent99c7c04eb7bebad0cd17b66b89f303e6ca9d8554 (diff)
downloadnumpy-95d1f23d3bbbadfe218fabc427f74353ad8aaa7e.tar.gz
ENH/BUG: Add tests and correct typing issues
Add tests for lower level components Correct errors found in testing Improve specificity of tests Other small fixes to docs and typing
Diffstat (limited to 'numpy/typing/tests/test_typing.py')
-rw-r--r--numpy/typing/tests/test_typing.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/typing/tests/test_typing.py b/numpy/typing/tests/test_typing.py
index e80282420..70355dcd9 100644
--- a/numpy/typing/tests/test_typing.py
+++ b/numpy/typing/tests/test_typing.py
@@ -48,8 +48,11 @@ def run_mypy() -> None:
The mypy results are cached in `OUTPUT_MYPY` for further use.
+ The cache refresh can be skipped using
+
+ NUMPY_TYPING_TEST_CLEAR_CACHE=0 pytest numpy/typing/tests
"""
- if os.path.isdir(CACHE_DIR):
+ if os.path.isdir(CACHE_DIR) and bool(os.environ.get("NUMPY_TYPING_TEST_CLEAR_CACHE", True)):
shutil.rmtree(CACHE_DIR)
for directory in (PASS_DIR, REVEAL_DIR, FAIL_DIR, MISC_DIR):