Skip to content

Commit

Permalink
README.rst: wrap long lines
Browse files Browse the repository at this point in the history
For comfortable reading on mobile devices.
  • Loading branch information
msabramo committed Dec 15, 2014
1 parent c6bef77 commit 1a4c5c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,17 @@ Setting per-test options:

.. code-block:: python
@pytest.mark.benchmark(group="group-name", max_time=0.5, max_iterations=5000, min_iterations=5, timer=time.time, disable_gc=True)
@pytest.mark.benchmark(
group="group-name", max_time=0.5,
max_iterations=5000, min_iterations=5,
timer=time.time, disable_gc=True)
def test_my_stuff(benchmark):
with benchmark:
# Code to be measured
result = time.sleep(0.000001)
# Extra code, to verify that the run completed correctly.
# Extra code, to verify that the run
# completed correctly.
# Note: this code is not measured.
assert result is None
Expand Down

0 comments on commit 1a4c5c0

Please sign in to comment.