#22653: Need to add database features  flag in some of the test cases
-------------------------------------+-------------------------------------
     Reporter:  rahul.priyadarshi@…  |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Testing framework    |                  Version:
     Severity:  Normal               |  1.7-beta-2
     Keywords:                       |               Resolution:
    Has patch:  1                    |             Triage Stage:  Accepted
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timo):

 Couple of things I noticed:

 * The MySQL backend has `supports_forward_references=False`
 ([https://github.com/django/django/commit/121d2e36#diff-
 dbe1511db54b8fff2cb72a199cf37b4cR127 blamed to 121d2e36]), but after
 removing that (which changes it to True) the tests still pass (i.e. the
 existing test that has
 `@skipUnlessDBFeature('supports_forward_references')` is currently skipped
 on MySQL, but works fine). This issue is not necessarily related to this
 patch, except that additional tests that current pass on MySQL will be
 skipped. I'm not sure if `supports_forward_references=False` can be
 removed or if maybe it is only relevant for particular versions and/or
 storage engines in MySQL.

 * MySQL + SQLite have `can_defer_constraint_checks=False` but
 `admin_views.tests.AdminViewDeletedObjectsTest` and
 `serializers_regress.tests.SerializerTests` current pass (the patch would
 cause them to be skipped).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22653#comment:4>
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/086.44820ff2aec100b1914d21586645cd85%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to