Message298132
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` |
|
Date |
User |
Action |
Args |
2017-07-11 06:49:53 | louielu | set | recipients:
+ louielu, terry.reedy, serhiy.storchaka |
2017-07-11 06:49:53 | louielu | set | messageid: <1499755793.48.0.5975757112.issue30870@psf.upfronthosting.co.za> |
2017-07-11 06:49:53 | louielu | link | issue30870 messages |
2017-07-11 06:49:53 | louielu | create | |
|