You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-131178: add tests for cProfile command-line interface
The existing TestCommandLine class only had two tests (invalid sort
option and __main__ namespace). This expands coverage to exercise
all major CLI code paths:
- help output (-h/--help)
- no arguments (usage + exit code 2)
- unknown option (error + exit code 2)
- invalid sort option (error + exit code 2)
- valid sort options with both -s and --sort forms
- output file with both -o and --outfile forms
- profiling a script file
- profiling a module via -m
- nonexistent script file (FileNotFoundError)
0 commit comments