Make generated doc in simple.rst more reliable

Sometimes `test_funcfast` would show up in the `setup` step in
the slowest test durations summary.
This commit is contained in:
Bruno Oliveira 2017-08-08 18:04:21 -03:00
parent 523bfa6151
commit 8b322afcdb
1 changed files with 4 additions and 4 deletions

View File

@ -363,14 +363,14 @@ out which tests are the slowest. Let's make an artificial test suite:
import time
def test_funcfast():
pass
def test_funcslow1():
time.sleep(0.1)
def test_funcslow2():
def test_funcslow1():
time.sleep(0.2)
def test_funcslow2():
time.sleep(0.3)
Now we can profile which test functions execute the slowest::
$ pytest --durations=3