Browse Source

[2225_statistics] reload module in setUp()

Naoki Kambe 12 years ago
parent
commit
78a4e4cd87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/python/isc/statistics/tests/counter_test.py

+ 1 - 1
src/lib/python/isc/statistics/tests/counter_test.py

@@ -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)