#34507: AttributeError: Can't pickle local object
'convert_exception_to_response.<locals>.inner'
-------------------------------------+-------------------------------------
Reporter: Mateusz | Owner: nobody
Kurowski |
Type: | Status: new
Uncategorized |
Component: | Version: 4.2
Uncategorized | Keywords:
Severity: Normal | pickle,exception,response,test
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
{{{
tblib==1.7.0
django==4.2
}}}
{{{
Error
Traceback (most recent call last):
File "/usr/lib/python3.11/unittest/case.py", line 57, in
testPartExecutor
yield
File "/usr/lib/python3.11/unittest/case.py", line 623, in run
self._callTestMethod(testMethod)
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/case.py", line 579, in
_callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File ".../tests/test_views.py", line 315, in test_GET
with self.subTest("member can view"):
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/case.py", line 537, in subTest
with self._outcome.testPartExecutor(self._subtest, subTest=True):
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/case.py", line 72, in
testPartExecutor
self.result.addSubTest(test_case.test_case, test_case, exc_info)
^^^^^^^^^^^^^^^^^
File "...env/lib/python3.11/site-packages/django/test/runner.py", line
307, in addSubTest
self.check_subtest_picklable(test, subtest)
^^^^^^^^^^^^^^^^^
File "...venv/lib/python3.11/site-packages/django/test/runner.py", line
269, in check_subtest_picklable
self._confirm_picklable(subtest)
^^^^^^^^^^^^^^^^^
File "...venv/lib/python3.11/site-packages/django/test/runner.py", line
186, in _confirm_picklable
pickle.loads(pickle.dumps(obj))
^^^^^^^^^^^^^^^^^
AttributeError: Can't pickle local object
'convert_exception_to_response.<locals>.inner'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34507>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070187a51a397d-d80e080a-1f34-4db1-a4a1-5b6e2cbb3101-000000%40eu-central-1.amazonses.com.