Skip to content

[3.15] gh-155648: Fix IDLE tests that cannot fail (GH-156257) - #156315

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-ee1da7e-3.15
Aug 27, 2026
Merged

[3.15] gh-155648: Fix IDLE tests that cannot fail (GH-156257)#156315
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-ee1da7e-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

test_autocomplete.py:241 passes when proper because any([]) is True is true. It would also pass if small only had underscored words because the filter got reversed. Change logic and replace filter with generator expression
using slice instead of startswith. Change line 242 to match.

test_editor.py:236 and test_configdialog.py:55 have empty tests ('pass'); skip them for now.
PR-GH-156260 add real tests.

template.py:25 tests True == True; skip it. With this, the bug scanner should be satisfied while allowing
setUpClass and tearDownClass to run and be verified.

Remove duplicate and confusing fetch_completions call.
(cherry picked from commit ee1da7e)

Co-authored-by: Terry Jan Reedy tjreedy@udel.edu

test_autocomplete.py:241 passes when proper because any([]) is True is true. It would also pass if small only had underscored words because the filter got reversed. Change logic and replace filter with generator expression
using slice instead of startswith. Change line 242 to match.

test_editor.py:236 and test_configdialog.py:55 have empty tests ('pass'); skip them for now.
PR-pythonGH-156260 add real tests.

template.py:25 tests True == True; skip it. With this, the bug scanner should be satisfied while allowing
setUpClass and tearDownClass to run and be verified.

Remove duplicate and confusing fetch_completions call.
(cherry picked from commit ee1da7e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

@terryjreedy terryjreedy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch reviewed and approved after changes by Serhiy on main PR.

@terryjreedy terryjreedy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch reviewed and approved after changes by Serhiy on main PR.

@terryjreedy terryjreedy assigned terryjreedy and hugovk and unassigned terryjreedy Aug 27, 2026
@hugovk
hugovk merged commit 96ae61d into python:3.15 Aug 27, 2026
61 checks passed
@miss-islington
miss-islington deleted the backport-ee1da7e-3.15 branch August 27, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants