Skip to content

Commit e79aaa7

Browse files
committed
DOC: Add doc explaining TestCase usage under pytest
1 parent fce1e3e commit e79aaa7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pandas/util/testing.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
Index, MultiIndex,
5151
Series, DataFrame, Panel, Panel4D)
5252

53-
from pandas.util.decorators import deprecate
5453
from pandas.util import libtesting
5554
from pandas.io.common import urlopen
5655
slow = pytest.mark.slow
@@ -83,6 +82,14 @@ def reset_testing_mode():
8382

8483

8584
class TestCase(unittest.TestCase):
85+
"""
86+
The test case class that we originally used when using the
87+
nosetests framework. Under the new pytest framework, we are
88+
moving away from this class.
89+
90+
Do not create new test classes derived from this one. Rather,
91+
they should inherit from object directly.
92+
"""
8693

8794
@classmethod
8895
def setUpClass(cls):

0 commit comments

Comments
 (0)