#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):
One last change I just noticed was necessary when running the full test
suite on PostgreSQL with the new aggregation tests. `TestCase` fixture
teardown needs to close the database connection. If it doesn't, the
connection may be re-used by a subsequent test that gets confused as a
result of the time zone setting having been rolled back along with the
rest of the `TestCase` actions. There may be a better way to handle this
but for now closing the connection after we've done a rollback on it works
to avoid the pesky time zone resetting problem.
--
Ticket URL: <http://code.djangoproject.com/ticket/8138#comment:31>
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
-~----------~----~----~----~------~----~------~--~---