diff options
| author | David Wobrock <david.wobrock@gmail.com> | 2024-02-26 17:18:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 17:18:48 +0100 |
| commit | ef2434f8508551fee183079ab471b1dc325c7acb (patch) | |
| tree | 503a6bd98f9c547b363b8149a6cce7e910ebce73 /django/test | |
| parent | 18d79033b90902a6d6b615b42051191fd1b37892 (diff) | |
Refs #32114 -- Fixed test crash on non-picklable objects in subtests when PickleError is raised.
Related to the https://github.com/python/cpython/issues/73373.
Follow up to c09e8f5fd8f977bf16e9ec5d11b370151fc81ea8.
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/testcases.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 911a2d50ac..0a802c887b 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -100,7 +100,7 @@ def is_pickable(obj): """ try: pickle.loads(pickle.dumps(obj)) - except (AttributeError, TypeError): + except (AttributeError, TypeError, pickle.PickleError): return False return True |
