summaryrefslogtreecommitdiff
path: root/plac/doc/test_runp.py
diff options
context:
space:
mode:
Diffstat (limited to 'plac/doc/test_runp.py')
-rw-r--r--plac/doc/test_runp.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/plac/doc/test_runp.py b/plac/doc/test_runp.py
deleted file mode 100644
index 4cdd494..0000000
--- a/plac/doc/test_runp.py
+++ /dev/null
@@ -1,24 +0,0 @@
-"""
-This test should work on Linux if you have Tkinter installed.
-"""
-
-from __future__ import with_statement
-import plac, plac_tk, time
-
-def gen(n):
- for i in range(n):
- yield str(i)
- time.sleep(.1)
-
-def test():
- tasks = plac.runp([gen(3), gen(5), gen(10)])
- for t in tasks:
- t.result
- t.man.stop()
-
-def test_tkmonitor():
- mon = plac_tk.TkMonitor('tkmon')
- tasks = plac.runp([gen(3), gen(5), gen(10)], monitors=[mon])
- for t in tasks:
- t.result
- t.man.stop()