diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/tests.py | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index 49db86b64..01ff26c5e 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -91,10 +91,9 @@ class TestCase(BaseTestCase):          super(TestCase, self)._pre_setup()          if settings.USE_SPATIALITE_FOR_TESTS:              return -        c = connection.cursor() -        for view in [CRBulkView, FirstBaseFindView, BFBulkView, FBulkView]: -            c.execute(view.CREATE_SQL) -            transaction.commit_unless_managed() +        with connection.cursor() as c: +            for view in [CRBulkView, FirstBaseFindView, BFBulkView, FBulkView]: +                c.execute(view.CREATE_SQL)  class CommandsTestCase(TestCase): | 
