django/tests/test_runner
Mariusz Felisiak 548209e620 Made RemoteTestResultTest.test_pickle_errors_detection() compatible with tblib 3.2+.
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
52188a5ca6 without skipping it.
2025-10-21 23:10:31 -03:00
..
__init__.py
models.py Fixed #36083 -- Ran system checks in ParallelTestSuite workers. 2025-09-16 21:57:22 -04:00
runner.py Removed unnecessary trailing commas in tests. 2023-08-22 12:42:57 +02:00
test_debug_sql.py Fixed #36380 -- Deferred SQL formatting when running tests with --debug-sql. 2025-06-16 17:41:24 -03:00
test_discover_runner.py Fixed #36531 -- Added forkserver support to parallel test runner. 2025-07-29 14:11:22 -03:00
test_parallel.py Made RemoteTestResultTest.test_pickle_errors_detection() compatible with tblib 3.2+. 2025-10-21 23:10:31 -03:00
test_shuffler.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
tests.py Refs #36500 -- Rewrapped long docstrings and block comments via a script. 2025-07-23 20:17:55 -03:00