BIND 10 trac2379_2, updated. 00fd5f949667517a3d02c70b36476f430c0721c9 [2379] Fix test data file copy and makefile

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Dec 17 14:43:49 UTC 2012


The branch, trac2379_2 has been updated
       via  00fd5f949667517a3d02c70b36476f430c0721c9 (commit)
      from  ca8707b6528b0779ce9cc6de42169d53af561b8a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 00fd5f949667517a3d02c70b36476f430c0721c9
Author: Jelte Jansen <jelte at isc.org>
Date:   Mon Dec 17 15:43:31 2012 +0100

    [2379] Fix test data file copy and makefile

-----------------------------------------------------------------------

Summary of changes:
 src/lib/python/isc/datasrc/tests/Makefile.am       |    1 +
 .../python/isc/datasrc/tests/zone_loader_test.py   |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/datasrc/tests/Makefile.am b/src/lib/python/isc/datasrc/tests/Makefile.am
index 102f104..3eb74fd 100644
--- a/src/lib/python/isc/datasrc/tests/Makefile.am
+++ b/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
diff --git a/src/lib/python/isc/datasrc/tests/zone_loader_test.py b/src/lib/python/isc/datasrc/tests/zone_loader_test.py
index c044fd5..4eaaea1 100644
--- a/src/lib/python/isc/datasrc/tests/zone_loader_test.py
+++ b/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



More information about the bind10-changes mailing list