BIND 10 trac2157_merge, updated. 8131da32a67a248150d55280f94c01ce0c377272 [2157] skip docbook XML test if python XML library is missing
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Feb 20 07:41:35 UTC 2013
The branch, trac2157_merge has been updated
via 8131da32a67a248150d55280f94c01ce0c377272 (commit)
from 946c4e8afa9647ee9a3e4481e66760512ce556e0 (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 8131da32a67a248150d55280f94c01ce0c377272
Author: Yoshitaka Aharen <aharen at jprs.co.jp>
Date: Wed Feb 20 16:37:59 2013 +0900
[2157] skip docbook XML test if python XML library is missing
-----------------------------------------------------------------------
Summary of changes:
src/bin/auth/tests/gen-statisticsitems_test.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/gen-statisticsitems_test.py b/src/bin/auth/tests/gen-statisticsitems_test.py
index 256b1ae..0cc7bcf 100644
--- a/src/bin/auth/tests/gen-statisticsitems_test.py
+++ b/src/bin/auth/tests/gen-statisticsitems_test.py
@@ -80,4 +80,11 @@ def test_xml_file(xmlfilepath):
if __name__ == "__main__":
xmlfilepath = sys.argv[1]
- test_xml_file(xmlfilepath)
+ try:
+ test_xml_file(xmlfilepath)
+ except ImportError:
+ # pyexpat library is required for ElementTree.parse() but it is
+ # missing in some environment. Just skip this test.
+ print ("Required library is missing, skipping this test.")
+ print ("Detailed information:")
+ print (sys.exc_info()[1])
More information about the bind10-changes
mailing list