#24903: Backport assertRaisesMessage fix
-------------------------------------+-------------------------------------
     Reporter:  MoritzS              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Testing framework    |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:  test assert raises   |             Triage Stage:
  message                            |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by MoritzS):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old 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

New description:

 In https://bugs.python.org/issue24134 cpython changed the behaviour of
 `assertRaises` that breaks django's `assertRaisesMessage`.
 Unfortunately this bug is not fixed in cpython'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

--

--
Ticket URL: <https://code.djangoproject.com/ticket/24903#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.cfbcd524286767913aa88a9e59d99ae7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to