#8138: Switch django tests to use transactions
----------------------------------------+-----------------------------------
          Reporter:  mremolt            |         Owner:  nobody  
            Status:  new                |     Milestone:  post-1.0
         Component:  Testing framework  |       Version:  SVN     
        Resolution:                     |      Keywords:          
             Stage:  Accepted           |     Has_patch:  1       
        Needs_docs:  0                  |   Needs_tests:  0       
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Comment (by kmtracey):

 Hi Eric, and thanks for the feedback! I added two more patches.  -tzcommit
 immediately commits the timezone setting for the two postgres backends.
 That should prevent the time zone setting ever getting rolled back on a
 connection and leading to time zone mismatch errors.  -nodoctestxaction
 does the same plus doesn't bracket running doctests in their own
 transaction. I'd be interested to know how this one does.  Essentially it
 means doctest database actions aren't cleaned up after running them, but
 that doesn't actually cause any failures for the Django suite -- I'd be
 interested in knowing if Ellington is similar here.

 You say "most" of the additional failures you see are time-related, so I
 gather some are not?  I'd be interested to know if the others are
 resulting from testcase assumptions about pk assignment.  Django had a few
 tests that assumed pk's were assigned starting at 1, and that assumption
 is not valid when rollback is used to reset the database.  So any of those
 I'd expect need to be fixed up to not assume the pk values will be
 starting at one.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8138#comment:25>
Django <http://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