Parcourir la source

[2379] Fix test data file copy and makefile

Jelte Jansen il y a 12 ans
Parent
commit
00fd5f9496

+ 1 - 0
src/lib/python/isc/datasrc/tests/Makefile.am

@@ -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

+ 1 - 1
src/lib/python/isc/datasrc/tests/zone_loader_test.py

@@ -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