8000 MAINT: Move typing tests · numpy/numpy@e97d913 · GitHub
[go: up one dir, main page]

Skip to content

Commit e97d913

Browse files
committed
MAINT: Move typing tests
Move them into a new `numpy/typing/tests directory`
1 parent c6dc7f6 commit e97d913

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+15
-11
lines changed

numpy/typing/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,8 @@
9393
from ._array_like import _SupportsArray, ArrayLike
9494
from ._shape import _Shape, _ShapeLike
9595
from ._dtype_like import DtypeLike
96+
97+
from numpy._pytesttester import PytestTester
98+
test = PytestTester(__name__)
99+
del PytestTester
100+

numpy/tests/setup.py renamed to numpy/typing/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
def configuration(parent_package='', top_path=None):
22
from numpy.distutils.misc_util import Configuration
3-
config = Configuration('tests', parent_package, top_path)
4-
config.add_data_dir('typing')
3+
config = Configuration('typing', parent_package, top_path)
4+
config.add_subpackage('tests')
5+
config.add_data_dir('tests/data')
56
return config
67

78

numpy/typing/tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)
0