Skip to content

IDLE autocomplete: refactor and polish code and tests #80600

Closed

Description

@terryjreedy
BPO 36419
Nosy @terryjreedy, @miss-islington
PRs
  • bpo-36419: IDLE - Refactor autocompete and improve testing. #15121
  • [3.8] bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121) #15123
  • [3.7] bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121) #15124
  • 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/terryjreedy'
    closed_at = <Date 2019-08-05.01:09:57.898>
    created_at = <Date 2019-03-24.23:11:25.859>
    labels = ['3.8', 'expert-IDLE', 'type-feature', '3.7', '3.9']
    title = 'IDLE autocomplete: refactor and polish code and tests'
    updated_at = <Date 2019-08-05.01:09:57.893>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2019-08-05.01:09:57.893>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2019-08-05.01:09:57.898>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2019-03-24.23:11:25.859>
    creator = 'terry.reedy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36419
    keywords = ['patch']
    message_count = 5.0
    messages = ['338766', '349008', '349009', '349010', '349015']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'miss-islington']
    pr_nums = ['15121', '15123', '15124']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue36419'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Activity

    1. terryjreedy commented on Mar 24, 2019

      @terryjreedy
      MemberAuthor

      Followup to bpo-30348.

      1. Merge try_open_completions_event and _open_completions_later. The latter is only used in the former. Adjust tests to match.
      2. The following in test_open_completions tests >>> "something<tab>
          self.text.insert('1.0', '"t')
          self.assertTrue(self.autocomplete.open_completions(False, True, True))
      This passes with unittest (py -m test.test_idle) but fails with regrtest (py -m test -ugui test_idle), with "None is not true".  There are multiple 'return None's in open_completions.  Determine which with debug prints and try to pass with regrtest.  Success does not depend on the inserted text matching any file in the current working directory.
      1. Increase coverage. Multiple conditionals are only triggered 1 way.
    2. added
      3.7 (EOL)
      3.8 (EOL)
      on Mar 24, 2019
    3. self-assigned this
      on Mar 24, 2019
    4. added
      type-feature
      on Mar 24, 2019
    5. terryjreedy commented on Aug 4, 2019

      @terryjreedy
      MemberAuthor

      New changeset 1213123 by Terry Jan Reedy in branch 'master':
      bpo-36419: IDLE - Refactor autocompete and improve testing. (bpo-15121)
      1213123

    6. miss-islington commented on Aug 5, 2019

      @miss-islington
      Contributor

      New changeset 5349f8c by Miss Islington (bot) in branch '3.8':
      bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
      5349f8c

    7. miss-islington commented on Aug 5, 2019

      @miss-islington
      Contributor

      New changeset 4969192 by Miss Islington (bot) in branch '3.7':
      bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
      4969192

    8. terryjreedy commented on Aug 5, 2019

      @terryjreedy
      MemberAuthor

      All three goals done. Most or all of the 7% not covered is the part of the file I did not touch.

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)3.8 (EOL)3.9 (EOL)topic-IDLEtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions