You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Django tests in parallel, e.g. runtests.py --parallel 4, a failure in one of the tests raises an exeption:
File "/Users/ajp/src/django/worktrees/django-5.0/.tox/py312/lib/python3.12/site-packages/_appmap/unittest.py", line 72, in callTestMethod
wrapped(*args, **kwargs)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/unittest/case.py", line 589, in _callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/tests/admin_views/tests.py", line 4663, in test_search_with_spaces
with self.subTest(search=search):
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/unittest/case.py", line 538, in subTest
with self._outcome.testPartExecutor(self._subtest, subTest=True):
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/unittest/case.py", line 73, in testPartExecutor
self.result.addSubTest(test_case.test_case, test_case, exc_info)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/django/test/runner.py", line 305, in addSubTest
self.check_subtest_picklable(test, subtest)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/django/test/runner.py", line 267, in check_subtest_picklable
self._confirm_picklable(subtest)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/django/test/runner.py", line 184, in _confirm_picklable
pickle.loads(pickle.dumps(obj))
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/.tox/py312/lib/python3.12/site-packages/_appmap/wrapt/wrappers.py", line 462, in __reduce_ex__
raise NotImplementedError(
^^^^^^^^^^^^^^^^^
NotImplementedError: object proxy must define __reduce_ex__()
Attempting to resolve this by moving the implementation of __reduce_ex__ up from wrapt.wrappers.FunctionWrapper to wrapt.wrappers.ObjectProxy (where it seems like it belongs) didn't really help:
File "/Users/ajp/src/applandinc/appmap-python/_appmap/unittest.py", line 72, in callTestMethod
wrapped(*args, **kwargs)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/unittest/case.py", line 589, in _callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/tests/admin_views/tests.py", line 4663, in test_search_with_spaces
with self.subTest(search=search):
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/unittest/case.py", line 538, in subTest
with self._outcome.testPartExecutor(self._subtest, subTest=True):
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/unittest/case.py", line 73, in testPartExecutor
self.result.addSubTest(test_case.test_case, test_case, exc_info)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/django/test/runner.py", line 305, in addSubTest
self.check_subtest_picklable(test, subtest)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/django/test/runner.py", line 267, in check_subtest_picklable
self._confirm_picklable(subtest)
^^^^^^^^^^^^^^^^^
File "/Users/ajp/src/django/worktrees/django-5.0/django/test/runner.py", line 184, in _confirm_picklable
pickle.loads(pickle.dumps(obj))
^^^^^^^^^^^^^^^^^
_pickle.PicklingError: Can't pickle <BoundFunctionWrapper at 0x11850a3c0 for method at 0x116c7a400>: it's not the same object as django.middleware.csrf.CsrfViewMiddleware.process_view
The text was updated successfully, but these errors were encountered:
When running Django tests in parallel, e.g.
runtests.py --parallel 4
, a failure in one of the tests raises an exeption:Attempting to resolve this by moving the implementation of
__reduce_ex__
up fromwrapt.wrappers.FunctionWrapper
towrapt.wrappers.ObjectProxy
(where it seems like it belongs) didn't really help:The text was updated successfully, but these errors were encountered: