Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle: update htest.py and htests #66819

Open
terryjreedy opened this issue Oct 14, 2014 · 5 comments
Open

Idle: update htest.py and htests #66819

terryjreedy opened this issue Oct 14, 2014 · 5 comments
Assignees
Labels
3.8 (EOL) end of life tests Tests in the Lib/test dir topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@terryjreedy
Copy link
Member

terryjreedy commented Oct 14, 2014

BPO 22629
Nosy @terryjreedy
Files
  • @htest-34.diff
  • @htest-34-2.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/terryjreedy'
    closed_at = None
    created_at = <Date 2014-10-14.03:33:50.580>
    labels = ['expert-IDLE', 'type-bug', '3.8']
    title = 'Idle: update htest.py and htests'
    updated_at = <Date 2019-02-21.00:50:19.172>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2019-02-21.00:50:19.172>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = False
    closed_date = None
    closer = None
    components = ['IDLE']
    creation = <Date 2014-10-14.03:33:50.580>
    creator = 'terry.reedy'
    dependencies = []
    files = ['36906', '36954']
    hgrepos = []
    issue_num = 22629
    keywords = ['patch']
    message_count = 5.0
    messages = ['229278', '229565', '229566', '229567', '336168']
    nosy_count = 3.0
    nosy_names = ['terry.reedy', 'python-dev', 'Saimadhav.Heblikar']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22629'
    versions = ['Python 3.8']

    Linked PRs

    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Oct 14, 2014

    After using idle-test/htest.py and individual htests when editing files, a few updates are needed.

    1. Improve the docstring for htest.py; add info about "# htest #".

    2. Use Toplevel(parent) instead of Tk() for test-specific childs windows of the main, master window. Currently, for some tests, such as CallTipWindow, the focus does not properly shift to the test window. Closing the master window first leaves the test window open. Closing the test window second then causes several tcl errors (printed to console if available), a Windows message, and an Idle freeze of 5 seconds or more before Idle works again. The change in this initial patch fixes the focus, non-close, error, and hang problems. One click and the test window is ready to go; one click on the master and both go away.

    3. Coding style issues -- I prefer to use winfo_rootx/y, as done elsewhere in Idle, to using re (close call). For CallTipWindow, the inner class is not needed now, if it ever was.

    @terryjreedy terryjreedy added topic-IDLE type-bug An unexpected behavior, bug, or error labels Oct 14, 2014
    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Oct 17, 2014

    I reviewed and edited htest.py docstring and specs up to grep. Unfortunately, things were not quite alphabetical. Reviewed and edited corresponding idlelib module callables up to first line of grep._grep_dialog. I am pushing this as a first chunk.

    Covered _calltip_window, ClassBrowser, _color_delegator, ConfigDialog, _dyn_option_menu, _editor_window, _grep_dialog. Checked x(parent), # htest #, (htest in widget), TopLevel(parent), winfo_x, bindings: see _calltip_window.

    @terryjreedy terryjreedy changed the title Idle: update htest.py and hests Idle: update htest.py and htests Oct 17, 2014
    @terryjreedy terryjreedy self-assigned this Oct 17, 2014
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Oct 17, 2014

    New changeset f5be7fc270d1 by Terry Jan Reedy in branch '2.7':
    Issue bpo-22629: Revise idle_test.htest, mostly docstring. Start revision of
    https://hg.python.org/cpython/rev/f5be7fc270d1

    New changeset e73f1d813f1f by Terry Jan Reedy in branch '3.4':
    Issue bpo-22629: Revise idle_test.htest, mostly docstring. Start revision of
    https://hg.python.org/cpython/rev/e73f1d813f1f

    New changeset d8ac11794f26 by Terry Jan Reedy in branch 'default':
    Merge with 3.4: Issue bpo-22629
    https://hg.python.org/cpython/rev/d8ac11794f26

    @terryjreedy
    Copy link
    Member Author

    As far as I can tell, the entire diff in @htest-34-2.diff was pushed. My comment about 'up to first line of grep' was correct alphabetically but confusing because files with a '# htest #' section were not completely alphabetical in the file. I need to review current code in light of this issue and a couple of others.

    @terryjreedy terryjreedy added the 3.8 (EOL) end of life label Feb 21, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @erlend-aasland erlend-aasland added the tests Tests in the Lib/test dir label Jul 27, 2022
    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Dec 1, 2023

    First patch: Review docstring again. Alphabetize specs.
    Later: Review spec and callable grep onwards.
    Any closing issues not fixed in edit consider in #112569.

    terryjreedy added a commit to terryjreedy/cpython that referenced this issue Dec 1, 2023
    Revise htest.py docstring and move 2 specs to alphabetical position.
    terryjreedy added a commit that referenced this issue Dec 1, 2023
    Revise htest.py docstring and move 2 specs to alphabetical position.
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 1, 2023
    Revise htest.py docstring and move 2 specs to alphabetical position.
    (cherry picked from commit e44f194)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 1, 2023
    Revise htest.py docstring and move 2 specs to alphabetical position.
    (cherry picked from commit e44f194)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 1, 2023
    Revise htest.py docstring and move 2 specs to alphabetical position.
    (cherry picked from commit e44f194)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 1, 2023
    Revise htest.py docstring and move 2 specs to alphabetical position.
    (cherry picked from commit e44f194)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit to terryjreedy/cpython that referenced this issue Dec 3, 2023
    Examine and update spec -- callable pairs.
    Revise run method.
    terryjreedy added a commit that referenced this issue Dec 3, 2023
    Examine and update spec -- callable pairs.
    Revise run method.
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 3, 2023
    Examine and update spec -- callable pairs.
    Revise run method.
    (cherry picked from commit 3855b45)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 3, 2023
    Examine and update spec -- callable pairs.
    Revise run method.
    (cherry picked from commit 3855b45)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 3, 2023
    Examine and update spec -- callable pairs.
    Revise run method.
    (cherry picked from commit 3855b45)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 3, 2023
    Examine and update spec -- callable pairs.
    Revise run method.
    (cherry picked from commit 3855b45)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit to terryjreedy/cpython that referenced this issue Dec 4, 2023
    Revise spec-callable pairs from percolator to end.
    terryjreedy added a commit that referenced this issue Dec 4, 2023
    Revise spec-callable pairs from percolator to end.
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 4, 2023
    Revise spec-callable pairs from percolator to end.
    (cherry picked from commit 5a1b531)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 4, 2023
    Revise spec-callable pairs from percolator to end.
    (cherry picked from commit 5a1b531)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 4, 2023
    Revise spec-callable pairs from percolator to end.
    (cherry picked from commit 5a1b531)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 4, 2023
    Revise spec-callable pairs from percolator to end.
    (cherry picked from commit 5a1b531)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit to terryjreedy/cpython that referenced this issue Dec 4, 2023
    Mostly double spacing before 'if __name__...'.
    terryjreedy added a commit that referenced this issue Dec 4, 2023
    Mostly double spacing before 'if __name__...'.
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 4, 2023
    Mostly double spacing before 'if __name__...'.
    (cherry picked from commit e5b0db0)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 4, 2023
    Mostly double spacing before 'if __name__...'.
    (cherry picked from commit e5b0db0)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 4, 2023
    Mostly double spacing before 'if __name__...'.
    (cherry picked from commit e5b0db0)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    terryjreedy added a commit that referenced this issue Dec 4, 2023
    Mostly double spacing before 'if __name__...'.
    (cherry picked from commit e5b0db0)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
    Revise htest.py docstring and move 2 specs to alphabetical position.
    aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
    Examine and update spec -- callable pairs.
    Revise run method.
    aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
    Revise spec-callable pairs from percolator to end.
    aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
    Mostly double spacing before 'if __name__...'.
    Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
    Revise htest.py docstring and move 2 specs to alphabetical position.
    Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
    Examine and update spec -- callable pairs.
    Revise run method.
    Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
    Revise spec-callable pairs from percolator to end.
    Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
    Mostly double spacing before 'if __name__...'.
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life tests Tests in the Lib/test dir topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    Status: No status
    Development

    No branches or pull requests

    2 participants