diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-10-26 12:23:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 12:23:47 -0600 |
commit | 74659316b2d25a288a1d11bde59b64158a2ff82e (patch) | |
tree | 4e7274d49d3a601680d3a6cb56d28752ae06610b /numpy/typing/tests/test_typing.py | |
parent | 58a9038da7e0e76e423cf56434a179620bc0dcb9 (diff) | |
parent | 6ea6fcbbd70a935b055975b39b175b747205eaf9 (diff) | |
download | numpy-74659316b2d25a288a1d11bde59b64158a2ff82e.tar.gz |
Merge pull request #20199 from BvB93/numeric
ENH: Add dtype typing support to `np.core.numeric`
Diffstat (limited to 'numpy/typing/tests/test_typing.py')
-rw-r--r-- | numpy/typing/tests/test_typing.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/numpy/typing/tests/test_typing.py b/numpy/typing/tests/test_typing.py index f303ebea3..4dd6530ff 100644 --- a/numpy/typing/tests/test_typing.py +++ b/numpy/typing/tests/test_typing.py @@ -98,16 +98,10 @@ def run_mypy() -> None: def get_test_cases(directory: str) -> Iterator[ParameterSet]: for root, _, files in os.walk(directory): for fname in files: - if os.path.splitext(fname)[-1] in (".pyi", ".py"): + short_fname, ext = os.path.splitext(fname) + if ext in (".pyi", ".py"): fullpath = os.path.join(root, fname) - # Use relative path for nice py.test name - relpath = os.path.relpath(fullpath, start=directory) - - yield pytest.param( - fullpath, - # Manually specify a name for the test - id=relpath, - ) + yield pytest.param(fullpath, id=short_fname) @pytest.mark.slow |