﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34507	AttributeError: Can't pickle local object 'convert_exception_to_response.<locals>.inner'	Mateusz Kurowski	nobody	"
{{{
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'


}}}
"	Bug	closed	Error reporting	4.2	Normal	duplicate	pickle,exception,response,test		Unreviewed	0	0	0	0	0	0
