Changes between Version 2 and Version 3 of Ticket #28575
- Timestamp:
- Sep 11, 2017, 9:53:49 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28575
- Property Triage Stage Unreviewed → Accepted
-
Ticket #28575 – Description
v2 v3 7 7 }}} 8 8 9 Note that *instances* of `Model.DoesNotExist` are pickleable as fixed here: https://code.djangoproject.com/ticket/17776. Howeverthe class itself is not. This is particularly problematic when using the Django test runner with the `--parallel` option enabled when a `Model.DoesNotExist` exception is raised. The result of this is the test runner bailing with a `pickle.PicklingError`, making it exceptionally difficult to debug the cause of the `Model.DoesNotExist`.9 *Instances* of `Model.DoesNotExist` are pickleable as fixed in #17776, however, the class itself is not. This is particularly problematic when using the Django test runner with the `--parallel` option enabled when a `Model.DoesNotExist` exception is raised. The result of this is the test runner bailing with a `pickle.PicklingError`, making it exceptionally difficult to debug the cause of the `Model.DoesNotExist`.