Skip to content

Commit

Permalink
Fix issue when an exercise doesn't have a docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 27, 2021
1 parent 770819c commit 0482d10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytest_perf/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def funcs_from_name(name):
)


@pass_none
def first_line(text):
lines = (line.strip() for line in text.splitlines())
return next(lines, None)
Expand Down

0 comments on commit 0482d10

Please sign in to comment.