Skip to content

Commit 40d7336

Browse files
committed
PKG: redo pd.test import
1 parent 9ba1f12 commit 40d7336

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

doc/source/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ use cases and writing corresponding tests.
552552
Adding tests is one of the most common requests after code is pushed to *pandas*. Therefore,
553553
it is worth getting in the habit of writing tests ahead of time so this is never an issue.
554554

555-
Like many packages, *pandas* uses `pytest`
555+
Like many packages, *pandas* uses `pytest
556556
<http://doc.pytest.org/en/latest/>`_ and the convenient
557557
extensions in `numpy.testing
558558
<http://docs.scipy.org/doc/numpy/reference/routines.testing.html>`_.

doc/source/whatsnew/v0.20.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Highlights include:
1111

1212
- Building pandas for development now requires ``cython >= 0.23`` (:issue:`14831`)
1313
- The ``.ix`` indexer has been deprecated, see :ref:`here <whatsnew_0200.api_breaking.deprecate_ix>`
14+
- Switched the test framework to pytest (:issue:`13097`)
1415

1516
Check the :ref:`API Changes <whatsnew_0200.api_breaking>` and :ref:`deprecations <whatsnew_0200.deprecations>` before updating.
1617

pandas/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
from pandas.io.api import *
5858

59-
from pandas.api.test import test
59+
from pandas.util._tester import test
6060

6161
# use the closest tagged version if possible
6262
from ._version import get_versions

pandas/api/tests/test_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_api(self):
133133

134134
class TestApi(Base, tm.TestCase):
135135

136-
allowed = ['tests', 'types', 'test']
136+
allowed = ['tests', 'types']
137137

138138
def test_api(self):
139139

File renamed without changes.

0 commit comments

Comments
 (0)