Skip to content

Commit

Permalink
DOC: Update documentation for TestCase usage
Browse files Browse the repository at this point in the history
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 pandas-devgh-15990.

[ci skip]
  • Loading branch information
gfyoung committed May 2, 2017
1 parent 5e36663 commit 2ba0a8f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions doc/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -633,12 +633,7 @@ framework that will facilitate testing and developing. Thus, instead of writing
....
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
using test classes allows for better organization. However, instead of inheriting from ``tm.TestCase``, we should just inherit from ``object``:

.. code-block:: python
class TestReallyCoolFeature(object):
....
using test classes allows for better organization. If test classes are used, make sure that they do inherit from ``tm.TestCase``.

Using ``pytest``
~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 2ba0a8f

Please sign in to comment.