forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: TEST.rst: add example with
pytest.mark.parametrize
The "Creating many similar tests" section of TEST.rst did not mention the use of pytest.mark.parametrize, which is a very common and convenient way to run several similar tests. I also noticed the following about the example: - All instructions of `test_single` and `test_double` were identical aside from the dtype. This did not seem consistent with the intent of the example. - The example showed use of `np.matrix`, which is no longer recommended. - The example used a function `imply`, which was not defined. This commit removes the "Creating many similar tests" section and expands the parametric tests section with an example that uses pytest.mark.parametrize. It also mentions NumPy's assert_equal, assert_allclose, and assert_less functions and makes other minor adjustments. [skip actions] [skip azp] [skip cirrus]
- Loading branch information
Showing
1 changed file
with
39 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters