Skip to content

Commit cd5523f

Browse files
committed
Add comment about --warmups 0
1 parent 7536c54 commit cd5523f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyperformance/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def get_pyperf_opts(options):
247247
if options.hook:
248248
for hook in options.hook:
249249
opts.append('--hook=%s' % hook)
250+
# --warmups=0 is a valid option, so check for `not None` here
250251
if options.warmups is not None:
251252
opts.append('--warmups=%s' % options.warmups)
252253

0 commit comments

Comments
 (0)