summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_html.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2025-10-21 21:11:44 +0200
committernessita <124304+nessita@users.noreply.github.com>2025-10-21 23:10:31 -0300
commit548209e620b3ca34396a360453f07c8dbb8aa6c7 (patch)
tree549759862de3964d57f9e86a9ef1e43e7f82cac4 /tests/utils_tests/test_html.py
parenta0323a0c44135c28134672e6e633e5f4a7a68d5d (diff)
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 52188a5ca6bafea0a66f17baacb315d61c7b99cd without skipping it.
Diffstat (limited to 'tests/utils_tests/test_html.py')
0 files changed, 0 insertions, 0 deletions