#16672: Preserve name of TestCase decorated with override_settings
-------------------------------------+-------------------------------------
               Reporter:  julien     |          Owner:  nobody
                   Type:  Bug        |         Status:  closed
              Milestone:             |      Component:  Testing framework
                Version:  1.3        |       Severity:  Normal
             Resolution:  fixed      |       Keywords:
           Triage Stage:  Ready for  |      Has patch:  1
  checkin                            |    Needs tests:  0
    Needs documentation:  0          |  Easy pickings:  0
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------

Comment (by ramiro):

 In [16722]:
 {{{
 #!CommitTicketReference repository="" revision="16722"
 Also copy `__module__` to our dynamically created TestCase subclass when
 override_settings acts as a class decorator.

 Otherwise, an error in e.g. a test in
 tests/modeltests/proxy_model_inheritance/tests.py
 was being reported as:

 ERROR: test_table_exists (django.test.utils.ProxyModelInheritanceTests)

 Refs #16672 and [16650].
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16672#comment:5>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to