Unverified Commit 47ab3e82 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

@slow has to be last (#7251)

Found an issue when `@slow` isn't the last decorator (gets ignored!), so documenting this significance.
parent 4f6e5257
......@@ -757,6 +757,13 @@ To run such tests set ``RUN_SLOW=1`` env var, e.g.:
RUN_SLOW=1 pytest tests
It's important that the decorator ``@slow`` appears last in the stack of decorators, as some decorators like ``parametrized`` may interfere with its normal functioning. Here is an example of the correct usage:
.. code-block:: python
@parameterized.expand(...)
@slow
def test_integration_foo():
Testing the stdout/stderr output
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment