"""
Just to make sure the plugin doesn't choke on doctests::

    >>> print('Yay, doctests!')
    Yay, doctests!

"""
import time
from functools import partial

import pytest


def test_fast(benchmark):
    @benchmark
    def result():
        return time.sleep(0.000001)
    assert result is None


def test_slow(benchmark):
    assert benchmark(partial(time.sleep, 0.001)) is None


def test_slower(benchmark):
    benchmark(lambda: time.sleep(0.01))


@pytest.mark.benchmark(min_rounds=2, timer=time.time, max_time=0.01)
def test_xfast(benchmark):
    benchmark(str)


def test_fast(benchmark):
    benchmark(int)


@pytest.fixture(params=range(5))
def foo(request):
    return request.param

@pytest.mark.benchmark(max_time=0.001, min_rounds=5)
def test_xfast_parametrized(benchmark, foo):
    benchmark(int)

@@ -444,24 +444,26 @@
 ep(0.01))%0A%0A%0A
+# 
 @pytest.mark
@@ -519,16 +519,18 @@
 e=0.01)%0A
+# 
 def test
@@ -540,32 +540,34 @@
 ast(benchmark):%0A
+# 
     benchmark(st
@@ -575,55 +575,8 @@
 )%0A%0A%0A
-def test_fast(benchmark):%0A    benchmark(int)%0A%0A%0A
 @pyt
@@ -652,60 +652,8 @@
 am%0A%0A
-@pytest.mark.benchmark(max_time=0.001, min_rounds=5)
 %0Adef
@@ -662,14 +662,8 @@
 est_
-xfast_
 para
@@ -702,13 +702,29 @@
 nchmark(
-int
+time.sleep, 0.00001
 )%0A

Simplify this.