_StringException: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched
return func(*args, *keywargs)
File "/home/zigo/sources/openstack/pike/python-pypowervm/build-area/python-pypowervm-1.1.6+dfsg1/pypowervm/tests/test_session.py", line 148, in test_session_clone
sess_deepclone = copy.deepcopy(sess)
File "/usr/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, rv)
File "/usr/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python3.6/copy.py", line 169, in deepcopy
rv = reductor(4)
TypeError: can't pickle _thread.RLock objects
Hi,
Running unit tests under Python 3.6 leads to this:
====================================================================== FAIL: pypowervm.tests.test_session.TestSession.test_session_clone pypowervm.tests.test_session.TestSession.test_session_clone
_StringException: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched return func(*args, *keywargs) File "/home/zigo/sources/openstack/pike/python-pypowervm/build-area/python-pypowervm-1.1.6+dfsg1/pypowervm/tests/test_session.py", line 148, in test_session_clone sess_deepclone = copy.deepcopy(sess) File "/usr/lib/python3.6/copy.py", line 180, in deepcopy y = _reconstruct(x, memo, rv) File "/usr/lib/python3.6/copy.py", line 280, in _reconstruct state = deepcopy(state, memo) File "/usr/lib/python3.6/copy.py", line 150, in deepcopy y = copier(x, memo) File "/usr/lib/python3.6/copy.py", line 240, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/lib/python3.6/copy.py", line 169, in deepcopy rv = reductor(4) TypeError: can't pickle _thread.RLock objects
Note that it does work with Python 3.5.