Message295956
| Author |
terry.reedy |
| Recipients |
python-dev, terry.reedy, xiang.zhang |
| Date |
2017年06月13日.19:41:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1497382885.42.0.83323338068.issue27922@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年06月13日 19:41:25 | terry.reedy | set | recipients:
+ terry.reedy, python-dev, xiang.zhang |
| 2017年06月13日 19:41:25 | terry.reedy | set | messageid: <1497382885.42.0.83323338068.issue27922@psf.upfronthosting.co.za> |
| 2017年06月13日 19:41:25 | terry.reedy | link | issue27922 messages |
| 2017年06月13日 19:41:25 | terry.reedy | create |
|