Closes #154. Thanks to gthb
@@ -5,3 +5,8 @@ config = os.environ.setdefault("CELERY_TEST_CONFIG_MODULE",
os.environ["CELERY_CONFIG_MODULE"] = config
os.environ["CELERY_LOADER"] = "default"
+
+def teardown():
+ import os
+ if os.path.exists("test.db"):
+ os.remove("test.db")
@@ -1,5 +1,3 @@
-import atexit
-
CARROT_BACKEND = "memory"
@@ -13,9 +11,3 @@ CELERY_DEFAULT_ROUTING_KEY = "testcelery"
CELERY_QUEUES = {"testcelery": {"binding_key": "testcelery"}}
CELERYD_LOG_COLOR = False
-@atexit.register
-def teardown_testdb():
- import os
- if os.path.exists("test.db"):
- os.remove("test.db")