Title: Idle: polish htests
Type: enhancement Stage: needs patch
Components: IDLE Versions: Python 3.7, Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: Saimadhav.Heblikar, jesstess, terry.reedy
Priority: normal Keywords:

Created on 2014-06-01 04:41 by terry.reedy, last changed 2017-06-19 23:18 by terry.reedy.

Messages (3)
msg219486 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-06-01 04:41
#21477 was about finishing the htest framework and creating at least a first draft of each human test. This issue is about refining individual tests. One remaining issue is placement of the master window and placement of test windows in relation to the master. The test message for some might use editing. Tests that only test behavior might be replaced by a unittest module. Some general tests, such as for Editor Window, might be split into separate tests with more specific instructions. These changes might or might not be done as part of the GSOC project.
msg220074 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-06-09 00:17
Another issue for sometests, but which might be fixed in, is to force focus to the new widget window opened by the Test_xyz button.
msg220238 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-06-11 06:29
Refinement 1: in doing coverage for UndoDelegator, I noticed that the htest function is counted as missing (uncovered). Both of the following in .coveragerc work to ignore the block: name prefix; comment suffix.
	def htest_.*:
	.*# htest #
The second is more practical for alphabetical order in htest. It is also less work to change. The particular form marks it as not a normal comment.

Refinement 2: put all imports that are specific to the htest function at the top of the function. Since the function is only called once per process, there is no efficiency consideration. I decided that after the tkinter import at the top got me (wasting time) looking through UndoDelegator for a widget call that might be the source of the leak. The changes can wait until we edit the file anyway, or at least write a test.

However, the docstring at the top of should be changed.
Date User Action Args
2017-06-19 23:18:40terry.reedysetcomponents: + IDLE
versions: + Python 3.6, Python 3.7, - Python 2.7, Python 3.4, Python 3.5
2014-06-11 06:29:53terry.reedysetmessages: + msg220238
2014-06-09 00:17:58terry.reedysetmessages: + msg220074
2014-06-01 04:44:08terry.reedylinkissue21477 superseder
2014-06-01 04:41:10terry.reedycreate