From: Naoki Kambe Date: Mon, 26 Nov 2012 13:05:28 +0000 (+0900) Subject: [2225_statistics] add tearDown() X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abd4fe9ffe48402cafdac9c1145f25c43da62332;p=thirdparty%2Fkea.git [2225_statistics] add tearDown() clear statistics data when every test is finished --- diff --git a/src/lib/python/isc/statistics/tests/counter_test.py b/src/lib/python/isc/statistics/tests/counter_test.py index 6d90a951cf..097ded6935 100644 --- a/src/lib/python/isc/statistics/tests/counter_test.py +++ b/src/lib/python/isc/statistics/tests/counter_test.py @@ -160,6 +160,9 @@ class BaseTestCounter(): self._zones_item_list = self.counter._zones_item_list self._started = threading.Event() + def tearDown(self): + self.counter.clear_counters() + def test_perzone_counters(self): # for per-zone counters for counter_name in self._zones_item_list: