Steven Myint added the comment:

I didn't quite understand the multiprocessing test cases, but attached is a 
standalone test case that reproduces the problem. The problem only shows up 
when using ThreadPool.

$ python thread_pool_exception_test.py
Traceback (most recent call last):
  File "thread_pool_exception_test.py", line 7, in <module>
    pool.map(exception, [1])
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/multiprocessing/pool.py",
 line 255, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/multiprocessing/pool.py",
 line 594, in get
    raise self._value
TypeError: exceptions must derive from BaseException

----------
Added file: http://bugs.python.org/file34520/thread_pool_exception_test.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20980>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to