Fix tracemalloc error when action isn't defined#161
Conversation
|
Which command line did you use to trigger this error? |
|
We're triggering the runner with our own script. That script calls another script with the relevant It's an odd way of invoking pyperf, I'll be the first to admit. This is legacy code I've been slowly cleaning up and modernizing. Perhaps using |
vstinner
left a comment
There was a problem hiding this comment.
Oh right, I can reproduce the issue with python3 doc/examples/bench_func.py --tracemalloc command.
Co-authored-by: Victor Stinner <vstinner@python.org>
|
@vstinner Is there anything else pending here that I can help with? |
|
@vstinner Can we get this merged? |
Ref #131
We're using the
Runner's argument parsing, but without usingpyperfdirectly. This is resulting in an undefinedaction, which means that when we use the--tracemallocargument, we get the following error:This PR checks for the attribute before accessing it.