summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunai <andunai@gmail.com>2018-01-17 12:18:37 +0200
committerAndrew Dunai <andunai@gmail.com>2018-01-17 12:18:37 +0200
commit411b894fb46e9d2e0c56a0d195e5e78760b4ab8f (patch)
treee14aa3158362824ea2c6fb8c08604520c70f37ae
parent4a5a08951280dc766351a6b42b91982938934b99 (diff)
downloadurwid-411b894fb46e9d2e0c56a0d195e5e78760b4ab8f.tar.gz
Twisted bug.
-rw-r--r--urwid/tests/test_event_loops.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/urwid/tests/test_event_loops.py b/urwid/tests/test_event_loops.py
index b01212d..90793a9 100644
--- a/urwid/tests/test_event_loops.py
+++ b/urwid/tests/test_event_loops.py
@@ -119,15 +119,20 @@ else:
rd, wr = os.pipe()
self.assertEqual(os.write(wr, "data".encode('ascii')), 4)
def step2():
+ print('step2()')
out.append(os.read(rd, 2).decode('ascii'))
def say_hello():
+ print('say_hello()')
out.append("hello")
def say_waiting():
+ print('say_waiting()')
out.append("waiting")
def exit_clean():
+ print('exit_clean()')
out.append("clean exit")
raise urwid.ExitMainLoop
def exit_error():
+ print('exit_error()')
1/0
handle = evl.watch_file(rd, step2)
handle = evl.alarm(0.01, exit_clean)