Permalink
Browse files

cleanup sqlitedb temporary db file after tests

  • Loading branch information...
1 parent 47367a0 commit 6035c9308eaf2072a3111ca27c5a43d44a74d888 @minrk committed Apr 15, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 IPython/parallel/tests/test_db.py
View
9 IPython/parallel/tests/test_db.py
@@ -18,6 +18,7 @@
from __future__ import division
+import os
import tempfile
import time
@@ -222,3 +223,11 @@ def create_db(self):
def tearDown(self):
self.db._db.close()
+
+
+def teardown():
+ """cleanup task db file after all tests have run"""
+ try:
+ os.remove(os.path.join(tempfile.gettempdir(), 'tasks.db'))
+ except:
+ pass

0 comments on commit 6035c93

Please sign in to comment.