diff --git a/tests/test_account_stock_continental.py b/tests/test_account_stock_continental.py index 1a466acc7c..f38a388589 100644 --- a/tests/test_account_stock_continental.py +++ b/tests/test_account_stock_continental.py @@ -12,8 +12,7 @@ if os.path.isdir(DIR): import unittest import doctest import trytond.tests.test_tryton -from trytond.tests.test_tryton import test_view, test_depends -from trytond.backend.sqlite.database import Database as SQLiteDatabase +from trytond.tests.test_tryton import test_view, test_depends, doctest_dropdb class AccountStockContinentalTestCase(unittest.TestCase): @@ -37,19 +36,6 @@ class AccountStockContinentalTestCase(unittest.TestCase): test_depends() -def doctest_dropdb(test): - ''' - Remove sqlite memory database - ''' - database = SQLiteDatabase().connect() - cursor = database.cursor(autocommit=True) - try: - database.drop(cursor, ':memory:') - cursor.commit() - finally: - cursor.close() - - def suite(): suite = trytond.tests.test_tryton.suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase(