python / cpython

The Python programming language
https://www.python.org
Other
63.39k stars 30.35k forks source link

Refactor IDLE htest #71823

Open terryjreedy opened 8 years ago

terryjreedy commented 8 years ago
BPO 27636
Nosy @terryjreedy

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: ```python assignee = 'https://github.com/terryjreedy' closed_at = None created_at = labels = ['expert-IDLE', 'type-feature', '3.7'] title = 'Refactor IDLE htest' updated_at = user = 'https://github.com/terryjreedy' ``` bugs.python.org fields: ```python activity = actor = 'terry.reedy' assignee = 'terry.reedy' closed = False closed_date = None closer = None components = ['IDLE'] creation = creator = 'terry.reedy' dependencies = [] files = [] hgrepos = [] issue_num = 27636 keywords = [] message_count = 2.0 messages = ['271486', '297690'] nosy_count = 1.0 nosy_names = ['terry.reedy'] pr_nums = [] priority = 'normal' resolution = None stage = 'needs patch' status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue27636' versions = ['Python 3.6', 'Python 3.7'] ```

terryjreedy commented 8 years ago

idlelib.idle_test.htest Extract a App(Tk) subclass from run function and nested function. Pass that as master instead of bare root. Extract HTest(Toplevel) class with the common code in files with an htest function. Attach HTest to App as an attribute so htest functions can instantiate or subclass.

terryjreedy commented 7 years ago

Htest should extract version from __file__, and module from spec, and display both.