Skip to content

pytest-profiling: Fix type argument #247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest-profiling/pytest_profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def pytest_addoption(parser):
help="generate profiling graph (using gprof2dot and dot -Tsvg)")
group.addoption("--pstats-dir", nargs=1,
help="configure the dump directory of profile data files")
group.addoption("--element-number", action="store", type="int", default=20,
group.addoption("--element-number", action="store", type=int, default=20,
help="defines how many elements will display in a result")
group.addoption("--strip-dirs", action="store_true",
help="configure to show/hide the leading path information from file names")
Expand Down