changeset 787:f46c3197e887 pyntnclick

Clear the event queue regularly in GameLogicTestCase
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 20:06:29 +0200
parents fb8c146017a9
children abfa4f7e89a0
files pyntnclick/tests/game_logic_utils.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyntnclick/tests/game_logic_utils.py	Sat Jan 26 20:01:39 2013 +0200
+++ b/pyntnclick/tests/game_logic_utils.py	Sat Jan 26 20:06:29 2013 +0200
@@ -75,6 +75,7 @@
         self.assertEquals(scene, self.state.current_scene.name)
 
     def handle_result(self, result):
+        self.clear_event_queue()
         if result is None:
             return None
         if hasattr(result, 'process'):