Commit 00fd5f94 authored by Jelte Jansen's avatar Jelte Jansen

[2379] Fix test data file copy and makefile

parent ca8707b6
......@@ -7,6 +7,7 @@ EXTRA_DIST = $(PYTESTS)
EXTRA_DIST += testdata/brokendb.sqlite3
EXTRA_DIST += testdata/example.com.sqlite3
EXTRA_DIST += testdata/example.com.source.sqlite3
EXTRA_DIST += testdata/newschema.sqlite3
EXTRA_DIST += testdata/oldschema.sqlite3
EXTRA_DIST += testdata/new_minor_schema.sqlite3
......
......@@ -46,7 +46,7 @@ class ZoneLoaderTests(unittest.TestCase):
self.test_file = ZONE_FILE
self.client = isc.datasrc.DataSourceClient("sqlite3", DB_CLIENT_CONFIG)
# Make a fresh copy of the database
shutil.copy(ORIG_DB_FILE, DB_FILE)
shutil.copyfile(ORIG_DB_FILE, DB_FILE)
# Some tests set source client; if so, check refcount in
# tearDown, since most tests don't, set it to None by default.
self.source_client = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment