Skip to content

Commit f4f6cb7

Browse files
authored
Merge pull request #4946 from blueyed/fix-bench
Fix bench/bench.py without args
2 parents c926999 + 8c96b65 commit f4f6cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pytest # NOQA
66
import pstats
77

8-
script = sys.argv[1:] if len(sys.argv) > 1 else "empty.py"
8+
script = sys.argv[1:] if len(sys.argv) > 1 else ["empty.py"]
99
stats = cProfile.run("pytest.cmdline.main(%r)" % script, "prof")
1010
p = pstats.Stats("prof")
1111
p.strip_dirs()

0 commit comments

Comments
 (0)