8000 MAINT: move typing tests cases into a subdirectory of numpy/tests · numpy/numpy@3fee17a · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fee17a

Browse files
committed
MAINT: move typing tests cases into a subdirectory of numpy/tests
1 parent 11b95d1 commit 3fee17a

28 files changed

+6
-6
lines changed

numpy/tests/setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
def configuration(parent_package='', top_path=None):
22
from numpy.distutils.misc_util import Configuration
33
config = 8000 Configuration('tests', parent_package, top_path)
4-
config.add_data_dir('pass')
5-
config.add_data_dir('fail')
6-
config.add_data_dir('reveal')
7-
config.add_data_files('mypy.ini')
4+
config.add_data_dir('typing')
85
return config
96

107

numpy/tests/test_typing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
else:
1313
NO_MYPY = False
1414

15-
TESTS_DIR = os.path.dirname(os.path.abspath(__file__))
15+
TESTS_DIR = os.path.join(
16+
os.path.dirname(os.path.abspath(__file__)),
17+
"typing",
18+
)
1619
PASS_DIR = os.path.join(TESTS_DIR, "pass")
1720
FAIL_DIR = os.path.join(TESTS_DIR, "fail")
1821
REVEAL_DIR = os.path.join(TESTS_DIR, "reveal")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

numpy/tests/mypy.ini renamed to numpy/tests/typing/mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
mypy_path = ../..
2+
mypy_path = ../../..
33

44
[mypy-numpy]
55
ignore_errors = True
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
0