Terry J. Reedy added the comment:

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.

----------
versions: +Python 3.7 -Python 2.7, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27922>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to