Join GitHub today
exclude empty setup/teardown from --durations #4063
Write a test without setup or tear-down:
def test_sleep(): import time time.sleep(2)
On medium-size testsuites, where one would like to see timings off all tests that run, these useless 0.00s entries clutter the output, so I'd suggest to remove them.