Louie Lu added the comment: It seem setUpModule will smash out the test, I've add a trust-will-work test inside the test_configdialog.py:
class Test(unittest.TestCase): def setUp(self): self.root = tkinter.Tk() def test_test(self): self.root.bind('<KeyRelease-Up>', lambda x: print('testing')) self.root.update() self.root.event_generate('<KeyRelease-Up>') This will print out `testing` when commet out setUpModule's `root = Tk()` line. But if this line is running, then the trust-test won't print out `testing` ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30870> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com