Opened 9 years ago

Last modified 9 years ago

#24903 closed Bug

Backport assertRaisesMessage fix — at Initial Version

Reported by: Moritz Sichert Owned by: nobody
Component: Testing framework Version: 1.8
Severity: Normal Keywords: test assert raises message
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In https://bugs.python.org/issue24134 python changed the behaviour of assertRaises that breaks django's assertRaisesMessage.
Unfortunately this bug is not fixed in python's 2.7.10 release, so I think the fixes on django's side should be backported at least to 1.8 because right now it's not possible to use assertRaisesMessage as context manager with 2.7.10.

Following commits contain the fixes on django's side:
c2bc1cefdcbbf074408f4a4cace88b315cf9d652
a0175724b086127a4e13612042961d3ba88d6bd9
e89c3a46035e9fe17c373a6c9cd63b9fd631d596

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top