docs: deprecation.rst: Add missing arguments to code example

In the proposed new style using `@pytest.mark.parametrize`,
the example function signature missed the actual arguments.
Add the missing arguments
This commit is contained in:
Thomas Hess 2018-10-13 20:33:31 +02:00 committed by GitHub
parent c27c8f41a8
commit 91b2797498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ This form of test function doesn't support fixtures properly, and users should s
.. code-block:: python .. code-block:: python
@pytest.mark.parametrize("x, y", [(2, 4), (3, 9)]) @pytest.mark.parametrize("x, y", [(2, 4), (3, 9)])
def test_squared(): def test_squared(x, y):
assert x ** x == y assert x ** x == y