diff --git a/tests/test_screen.py b/tests/test_screen.py index 42e384e..b0ed2e9 100644 --- a/tests/test_screen.py +++ b/tests/test_screen.py @@ -835,7 +835,8 @@ def test_wait(self): """ def internal_checks(screen): # Clear any outstanding events - sometimes windows has system events waiting. - screen.get_event() + while screen.get_event() != None: + pass start = time.time() screen.wait_for_input(0.1) self.assertGreaterEqual(time.time() - start, 0.1)