From: Naoki Kambe Date: Mon, 26 Nov 2012 08:03:16 +0000 (+0900) Subject: [2225_statistics] reload counter module in each testcase X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69bc301dec66ffd80960a45c882fd50c498121cc;p=thirdparty%2Fkea.git [2225_statistics] reload counter module in each testcase --- diff --git a/src/lib/python/isc/statistics/tests/counter_test.py b/src/lib/python/isc/statistics/tests/counter_test.py index dee5287e6c..c0616c0f31 100644 --- a/src/lib/python/isc/statistics/tests/counter_test.py +++ b/src/lib/python/isc/statistics/tests/counter_test.py @@ -19,6 +19,7 @@ import unittest import threading from datetime import timedelta import os +import imp import isc.config TEST_ZONE_NAME_STR = "example.com." @@ -148,6 +149,7 @@ class TestBasicMethods(unittest.TestCase): self._timer_name), 0) class BaseTestCounter(): + imp.reload(counter) def setUp(self): self._module_spec = isc.config.module_spec_from_file( self.TEST_SPECFILE_LOCATION)