diff options
Diffstat (limited to 'urwid/tests')
-rw-r--r-- | urwid/tests/test_event_loops.py | 5 |
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) |