BIND 10 master, updated. 6409bf0fb2fcb3d60c664009be730f1a71fdac54 [master] suppress some failures in stats tests with Python 3.3
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Feb 13 06:31:43 UTC 2013
The branch, master has been updated
via 6409bf0fb2fcb3d60c664009be730f1a71fdac54 (commit)
from 3a3c7f52a1da822814cbd742a565ac4ed9c801d9 (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 6409bf0fb2fcb3d60c664009be730f1a71fdac54
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Feb 13 15:26:33 2013 +0900
[master] suppress some failures in stats tests with Python 3.3
This is an ad-hoc workaround for the failures in stats tests. It's okayed to be
committed on jabber. Note that this workaround should be removed after a
fundamental fix for stats tests (#1668) is done. An investigation task for the
fix will be worked on #2689. For the details of the failures, see #2666 and
http://git.bind10.isc.org/~tester/builder//BIND10-valgrind/20130212205704-CentOS5-x86_64-GCC/logs/unittests.out
-----------------------------------------------------------------------
Summary of changes:
src/bin/stats/tests/b10-stats-httpd_test.py | 2 ++
src/bin/stats/tests/b10-stats_test.py | 4 ++++
2 files changed, 6 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/stats/tests/b10-stats-httpd_test.py b/src/bin/stats/tests/b10-stats-httpd_test.py
index 98689c8..961986e 100644
--- a/src/bin/stats/tests/b10-stats-httpd_test.py
+++ b/src/bin/stats/tests/b10-stats-httpd_test.py
@@ -34,6 +34,7 @@ import http.client
import xml.etree.ElementTree
import random
import urllib.parse
+import sys
# load this module for xml validation with xsd. For this test, an
# installation of lxml is required in advance. See http://lxml.de/.
try:
@@ -250,6 +251,7 @@ class TestHttpHandler(unittest.TestCase):
# reset the signal handler
self.sig_handler.reset()
+ @unittest.skipIf(sys.version_info >= (3, 3), "Unsupported in Python 3.3 or higher")
@unittest.skipUnless(xml_parser, "skipping the test using XMLParser")
def test_do_GET(self):
self.assertTrue(type(self.stats_httpd.httpd) is list)
diff --git a/src/bin/stats/tests/b10-stats_test.py b/src/bin/stats/tests/b10-stats_test.py
index 80bd3a6..b76e4d2 100644
--- a/src/bin/stats/tests/b10-stats_test.py
+++ b/src/bin/stats/tests/b10-stats_test.py
@@ -27,6 +27,7 @@ import threading
import io
import time
import imp
+import sys
import stats
import isc.log
@@ -605,6 +606,7 @@ class TestStats(unittest.TestCase):
self.assertEqual(self.stats.update_statistics_data(
'Foo', 'foo1', _test_exp6), ['unknown module name: Foo'])
+ @unittest.skipIf(sys.version_info >= (3, 3), "Unsupported in Python 3.3 or higher")
def test_update_statistics_data_withmid(self):
self.stats = stats.Stats()
self.stats.do_polling()
@@ -736,6 +738,7 @@ class TestStats(unittest.TestCase):
isc.config.create_answer(0))
self.assertFalse(self.stats.running)
+ @unittest.skipIf(sys.version_info >= (3, 3), "Unsupported in Python 3.3 or higher")
def test_command_show(self):
# two auth instances invoked
list_auth = [ self.base.auth.server,
@@ -1143,6 +1146,7 @@ class TestStats(unittest.TestCase):
isc.config.create_answer(
1, "module name is not specified"))
+ @unittest.skipIf(sys.version_info >= (3, 3), "Unsupported in Python 3.3 or higher")
def test_polling(self):
stats_server = ThreadingServerManager(MyStats)
stat = stats_server.server
More information about the bind10-changes
mailing list