Repository navigation
Add tests for CLI of the tabnanny module #63301
Description
Activity
I was trying to use the argparse module instead of getopt and I couldn't find any tests for CLI of the tabnanny module.
Added comments on Rietveld.
Although tabnanny is located in the Lib directory, not in the Tools directory, technically it is a script. May be move test_tabnanny.py to Lib/test/test_tools?
- addedtype-featureA feature request or enhancementA feature request or enhancement
on Nov 6, 2014 Since tabnanny is also a module in the standard library (it is imported by the idle code), wouldn't moving it to lib/test/test_tools make it un-importable? This would be a good case for leaving it where it is.
New changeset dfa9643 by Victor Stinner (Jaysinh Shukla) in branch 'master':
bpo-19382: Adding test cases for module tabnanny (GH-851)
dfa9643--
@Jaysinh Shukla: I looked at Berker's old patch, and I think that it would be interesting to modify tabnanny to return with a non-zero exit code in case of failure. Maybe replace "return" with "sys.exit(1)" after errprint() calls.
@Stinner Victor Thanks for merging. I will try to observe that patch and will update you here. Have a great day
- added a commit that references this issue
on Mar 4, 2023 - added 2 commits that reference this issue
on Mar 6, 2023
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: