Parcourir la source

[2225_statistics] reload module in setUp()

Naoki Kambe il y a 12 ans
Parent
commit
78a4e4cd87
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)