From 8b322afcdb094c2c634a4f01c07facfab644b847 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 8 Aug 2017 18:04:21 -0300 Subject: [PATCH] Make generated doc in simple.rst more reliable Sometimes `test_funcfast` would show up in the `setup` step in the slowest test durations summary. --- doc/en/example/simple.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index f76d39264..be3f8d2e8 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -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