testqueue.py 146 B

12345678910
  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
  8. '--' + str(e)