When running either of the test_multiprocessing_fork, test_multiprocessing_spawn or test_multiprocessing_forkserver I get error in test_mymanager that leads to hanging. Here is the fragment:
test_mymanager (test.test_multiprocessing_fork.WithManagerTestMyManager) ... Unhandled exception in thread started by <bound method Thread._bootstrap of <Thread(MainProcess, started daemon 140251183703808)>>
Traceback (most recent call last):
File "cpython/Lib/multiprocessing/managers.py", line 235, in serve_client
(methodname, type(obj), exposed)
AttributeError: method '_h' of <class 'test._test_multiprocessing.FooBar'> object is not in exposed={'g', 'f'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "cpython/Lib/multiprocessing/managers.py", line 258, in serve_client
fallback_func = self.fallback_mapping[methodname]
KeyError: '_h'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "cpython/Lib/multiprocessing/managers.py", line 195, in handle_request
result = func(c, *args, **kwds)
File "cpython/Lib/multiprocessing/managers.py", line 386, in accept_connection
File "cpython/Lib/multiprocessing/managers.py", line 264, in serve_client
msg = ('#TRACEBACK', format_exc())
File "cpython/Lib/traceback.py", line 163, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
File "cpython/Lib/traceback.py", line 117, in format_exception
type(value), value, tb, limit=limit).format(chain=chain))
File "cpython/Lib/traceback.py", line 474, in __init__
capture_locals=capture_locals)
File "cpython/Lib/traceback.py", line 358, in extract
f.line
File "cpython/Lib/traceback.py", line 282, in line
self._line = linecache.getline(self.filename, self.lineno).strip()
File "cpython/Lib/linecache.py", line 16, in getline
lines = getlines(filename, module_globals)
File "cpython/Lib/linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "cpython/Lib/linecache.py", line 137, in updatecache
lines = fp.readlines()
File "cpython/Lib/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xaa in position 4096: invalid start byte
This UnicodeDecodeError repeats couple more times and then everything stops. It doesn't seem to matter how the tests run, either directly or as part of a test suite.
|