mirror of
https://github.com/django/django.git
synced 2025-11-22 20:16:24 +00:00
tblib 3.2+ makes exception subclasses with __init__() and the default
__reduce__() picklable. This broke the test for
RemoteTestResult._confirm_picklable(), which expects a specific
exception to fail unpickling.
https://github.com/ionelmc/python-tblib/blob/master/CHANGELOG.rst#320-2025-10-21
This fix defines ExceptionThatFailsUnpickling.__reduce__() in a way
that pickle.dumps(obj) succeeds, but pickle.loads(pickle.dumps(obj))
raises TypeError.
Refs #27301. This preserves the intent of the regression test from
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| models.py | ||
| runner.py | ||
| test_debug_sql.py | ||
| test_discover_runner.py | ||
| test_parallel.py | ||
| test_shuffler.py | ||
| tests.py | ||