]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] reload module in setUp()
authorNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 13:07:06 +0000 (22:07 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 13:07:06 +0000 (22:07 +0900)
src/lib/python/isc/statistics/tests/counter_test.py

index 1143a365f21ff2258b808d051beec4669094ce3a..48eed8da3aef949706a1a73a4d71e9bb3708a37e 100644 (file)
@@ -146,8 +146,8 @@ class TestBasicMethods(unittest.TestCase):
                                  timer_name), 0)
 
 class BaseTestCounter():
-    imp.reload(counter)
     def setUp(self):
+        imp.reload(counter)
         self._module_spec = isc.config.module_spec_from_file(
             self.TEST_SPECFILE_LOCATION)
         self.counter = counter.Counter.init(self.TEST_SPECFILE_LOCATION)