]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] reload counter module in each testcase
authorNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 08:03:16 +0000 (17:03 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 08:09:43 +0000 (17:09 +0900)
src/lib/python/isc/statistics/tests/counter_test.py

index dee5287e6cec143de3b614d2671314437719a081..c0616c0f3115dde0abdcff767380dd7cc21f8250 100644 (file)
@@ -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)