Message295946
Using findleak.py, attached to #30642, modified to always print the filename, I discovered that test_parenmatch also flashes (along with test_searchbase). The leak test runs each test_xyz module 9 times, so is a good way to see flashing.
Adding 'root.withdraw' stops the single flash when running test_parenmatch once. However, it does not stop flashing when running 9 times with -R: refleak test. Flash continues even if class is reduced to
class ParenMatchTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.root = Tk()
cls.root.withdraw()
@classmethod
def tearDownClass(cls):
cls.root.destroy()
del cls.root
def test_dummy(self): pass
This is a puzzle since the same skeleton is in several other files. In fact, at least one, test_autocomplete, does not even have root.withdraw. In any case, I will add it here. |
|
Date |
User |
Action |
Args |
2017-06-13 18:01:18 | terry.reedy | set | recipients:
+ terry.reedy, python-dev, xiang.zhang |
2017-06-13 18:01:18 | terry.reedy | set | messageid: <1497376878.5.0.138984401076.issue27922@psf.upfronthosting.co.za> |
2017-06-13 18:01:18 | terry.reedy | link | issue27922 messages |
2017-06-13 18:01:18 | terry.reedy | create | |
|