GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add tests for CLI of the tabnanny module · Issue #63301 · python/cpython

Add tests for CLI of the tabnanny module #63301

New issue
Copy link
New issue
Copy link
Closed
Closed
Add tests for CLI of the tabnanny module#63301
Copy link
Assignees
berkerpeksag
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement

Description

@berkerpeksag
berkerpeksag
opened on Sep 27, 2013
Issue body actions
BPO 19102
Nosy @vstinner, @berkerpeksag, @serhiy-storchaka, @ultimatecoder
PRs
  • gh-63301: Set exit code when tabnanny CLI exits on error #7699
  • Files
  • test_tabnanny.diff
  • 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 = None
    created_at = <Date 2013-09-27.11:41:08.119>
    labels = ['type-feature', 'tests']
    title = 'Add tests for CLI of the tabnanny module'
    updated_at = <Date 2018-06-15.04:34:31.033>
    user = 'https://github.com/berkerpeksag'

    bugs.python.org fields:

    activity = <Date 2018-06-15.04:34:31.033>
    actor = 'jaysinh.shukla'
    assignee = 'berker.peksag'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2013-09-27.11:41:08.119>
    creator = 'berker.peksag'
    dependencies = []
    files = ['31882']
    hgrepos = []
    issue_num = 19102
    keywords = ['patch']
    message_count = 6.0
    messages = ['198467', '230733', '233642', '319502', '319503', '319584']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'berker.peksag', 'Al.Sweigart', 'serhiy.storchaka', 'jaysinh.shukla']
    pr_nums = ['7699']
    priority = 'low'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue19102'
    versions = ['Python 3.5']

    Activity

    1. berkerpeksag commented on Sep 27, 2013

      @berkerpeksag
      berkerpeksag
      on Sep 27, 2013
      MemberAuthor
      More actions

      I was trying to use the argparse module instead of getopt and I couldn't find any tests for CLI of the tabnanny module.

    2. berkerpeksag
      added
      testsTests in the Lib/test dirTests in the Lib/test dir
      on Sep 27, 2013
    3. serhiy-storchaka commented on Nov 6, 2014

      @serhiy-storchaka
      serhiy-storchaka
      on Nov 6, 2014
      Member
      More actions

      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?

    4. serhiy-storchaka
      assigned
      berkerpeksag
      on Nov 6, 2014
    5. serhiy-storchaka
      added
      type-featureA feature request or enhancementA feature request or enhancement
      on Nov 6, 2014
    6. AlSweigart commented on Jan 8, 2015

      @AlSweigart
      AlSweigartmannequin
      on Jan 8, 2015
      Mannequin
      More actions

      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.

    7. vstinner commented on Jun 14, 2018

      @vstinner
      vstinner
      on Jun 14, 2018
      Member
      More actions

      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.

    8. ultimatecoder commented on Jun 14, 2018

      @ultimatecoder
      ultimatecodermannequin
      on Jun 14, 2018
      Mannequin
      More actions

      @Stinner Victor Thanks for merging. I will try to observe that patch and will update you here. Have a great day

    9. ultimatecoder commented on Jun 15, 2018

      @ultimatecoder
      ultimatecodermannequin
      on Jun 15, 2018
      Mannequin
      More actions

      @vstinner I have created the PR here. I wasn't sure so linked the PR with this issue. Thanks!

      PR URL: #7699

    10. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    11. hauntsaninja
      added a commit that references this issue on Mar 4, 2023

      gh-63301: Set exit code when tabnanny CLI exits on error (#7699)

      8176334
    12. hauntsaninja
      closed this as completedon Mar 4, 2023
    13. hugovk
      added a commit that references this issue on Mar 6, 2023

      pythongh-63301: Set exit code when tabnanny CLI exits on error (pytho…

      b70f49f
    14. carljm
      added 2 commits that reference this issue on Mar 6, 2023

      Merge branch 'main' into nodeaddict

      33dda2a

      Merge branch 'main' into inlinecomp2

      ecb313c
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    • @berkerpeksag
      berkerpeksag

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.