summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Ward <ian@excess.org>2014-04-04 11:38:10 -0400
committerIan Ward <ian@excess.org>2014-04-04 11:38:10 -0400
commit281e81df3f8a3c7b7ba9be441962337b0d5df2a8 (patch)
tree5272fbf495cf0713e0204dabe87a05b07578ac8c
parent65c8722b740970bb0c944dfe4092010ed507aa58 (diff)
downloadurwid-281e81df3f8a3c7b7ba9be441962337b0d5df2a8.tar.gz
loosen event loop tests to avoid false failures
-rw-r--r--urwid/tests/test_event_loops.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/urwid/tests/test_event_loops.py b/urwid/tests/test_event_loops.py
index 9f271f0..1453a02 100644
--- a/urwid/tests/test_event_loops.py
+++ b/urwid/tests/test_event_loops.py
@@ -52,7 +52,8 @@ class EventLoopTestMixin(object):
handle = evl.alarm(0.005, say_hello)
self.assertEqual(evl.enter_idle(say_waiting), 1)
evl.run()
- self.assertEqual(out, ["waiting", "hello", "waiting", "clean exit"])
+ self.assertIn("hello", out)
+ self.assertIn("clean exit", out)
handle = evl.watch_file(rd, exit_clean)
del out[:]
evl.run()
@@ -124,5 +125,7 @@ else:
handle = evl.alarm(0.005, say_hello)
self.assertEqual(evl.enter_idle(say_waiting), 1)
evl.run()
- self.assertEqual(out, ["da", "ta", "waiting", "hello", "waiting",
- "clean exit"])
+ self.assertIn("da", out)
+ self.assertIn("ta", out)
+ self.assertIn("hello", out)
+ self.assertIn("clean exit", out)