Skip to content

Commit e0284e4

Browse files
committed
DOC: Update documentation for TestCase usage
tm.TestCase no longer follows the nosetest idiom, so it is here to stay, so update the documentation to say that we are using it still. Closes gh-15990.
1 parent bdc0a89 commit e0284e4

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

doc/source/contributing.rst

-8
Original file line numberDiff line numberDiff line change
@@ -632,14 +632,6 @@ framework that will facilitate testing and developing. Thus, instead of writing
632632
def test_really_cool_feature():
633633
....
634634
635-
Sometimes, it does make sense to bundle test functions together into a single class, either because the test file is testing multiple functions from a single module, and
636-
using test classes allows for better organization. However, instead of inheriting from ``tm.TestCase``, we should just inherit from ``object``:
637-
638-
.. code-block:: python
639-
640-
class TestReallyCoolFeature(object):
641-
....
642-
643635
Using ``pytest``
644636
~~~~~~~~~~~~~~~~
645637

pandas/tests/test_algos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def test_complex_sorting(self):
282282
# gh 12666 - check no segfault
283283
# Test not valid numpy versions older than 1.11
284284
if pd._np_version_under1p11:
285-
self.skipTest("Test valid only for numpy 1.11+")
285+
pytest.skip("Test valid only for numpy 1.11+")
286286

287287
x17 = np.array([complex(i) for i in range(17)], dtype=object)
288288

0 commit comments

Comments
 (0)