summaryrefslogtreecommitdiffstats
path: root/keystone/common/sql/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystone/common/sql/util.py')
-rw-r--r--keystone/common/sql/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/keystone/common/sql/util.py b/keystone/common/sql/util.py
index 195adc83..65e87bec 100644
--- a/keystone/common/sql/util.py
+++ b/keystone/common/sql/util.py
@@ -35,3 +35,8 @@ def setup_test_database():
shutil.copyfile('test.db.pristine', 'test.db')
except Exception:
pass
+
+
+def teardown_test_database():
+ if os.path.exists('test.db.pristine'):
+ os.unlink('test.db.pristine')