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
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:
assignee='https://github.com/berkerpeksag'closed_at=Nonecreated_at=<Date2013-09-27.11:41:08.119>labels= ['type-feature', 'tests']
title='Add tests for CLI of the tabnanny module'updated_at=<Date2018-06-15.04:34:31.033>user='https://github.com/berkerpeksag'
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?
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.
ultimatecoder commented on Jun 14, 2018
ultimatecodermannequin
Mannequin
More actions
@Stinner Victor Thanks for merging. I will try to observe that patch and will update you here. Have a great day
ultimatecoder commented on Jun 15, 2018
ultimatecodermannequin
Mannequin
More actions
@vstinner I have created the PR here. I wasn't sure so linked the PR with this issue. Thanks!
Activity
berkerpeksag commentedon Sep 27, 2013
I was trying to use the argparse module instead of getopt and I couldn't find any tests for CLI of the tabnanny module.
serhiy-storchaka commentedon Nov 6, 2014
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?
AlSweigart commentedon Jan 8, 2015
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.
vstinner commentedon Jun 14, 2018
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.
ultimatecoder commentedon Jun 14, 2018
@Stinner Victor Thanks for merging. I will try to observe that patch and will update you here. Have a great day
ultimatecoder commentedon Jun 15, 2018
@vstinner I have created the PR here. I wasn't sure so linked the PR with this issue. Thanks!
PR URL: #7699
gh-63301: Set exit code when tabnanny CLI exits on error (#7699)
pythongh-63301: Set exit code when tabnanny CLI exits on error (pytho…
Merge branch 'main' into nodeaddict
Merge branch 'main' into inlinecomp2