testqueue.py 142 B

123456789
  1. # coding:utf-8
  2. from multiprocessing import Queue
  3. try:
  4. q = Queue()
  5. q.get(timeout=5)
  6. except BaseException, e:
  7. print '--' + str(e)