#24080: Sqlite segmentation fault regression when running tests (since 1.7.2)
-----------------------------------+------------------------------------
Reporter: stevejalim | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: sqlite nose | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by maerteijn):
* keywords: sqlite => sqlite nose
Comment:
Just a small note as I also ran into this issue (an exception in
backends/sqlite3/base.py when running tests with nose) It's difficult to
exactly pinpoint versions of python/sqlite/django as it's behaving
differently on different platforms.
However, I managed to fix the segmentation fault by changing the TestCase
as following:
{{{
from django.test import TransactionTestCase as TestCase
class TestUserOffers(TestCase):
"""My segfaulting testcase"""
cleans_up_after_itself = True
}}}
So I suspect something with cleaning up after a testcase is finished. (See
also http://django-nose.readthedocs.org/en/latest/usage.html#escaping-the-
grime)
--
Ticket URL: <https://code.djangoproject.com/ticket/24080#comment:46>
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/068.7ec883eef5c3e6ccdfd3f152123d8925%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.