diff options
author | Masayuki Igawa <igawa@mxs.nes.nec.co.jp> | 2014-09-26 14:20:34 +0900 |
---|---|---|
committer | Masayuki Igawa <igawa@mxs.nes.nec.co.jp> | 2014-09-26 14:20:34 +0900 |
commit | 0915a0026bbaecc95e0b414576a182d6492a7680 (patch) | |
tree | 67102b66dec089ecd005757e182b79676ede279f | |
parent | 0ade1d96d04a5ee23468884edd51460a67191e47 (diff) | |
download | tempest-lib-0915a0026bbaecc95e0b414576a182d6492a7680.tar.gz |
Remove unused method and variable in base.py
base.py was migrated and simplified by
commit: 45da2a78dc9d560b021ae3fa90d9b7e45b6c9b51
But there are some unused codes in it. This commit just removes them.
Change-Id: Ie16fdf75b69006cf48ad9b2649c4bf3659901b80
-rw-r--r-- | tempest_lib/base.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tempest_lib/base.py b/tempest_lib/base.py index d3729ed..03e5da3 100644 --- a/tempest_lib/base.py +++ b/tempest_lib/base.py @@ -39,15 +39,6 @@ else: unittest2.TestCase): pass -at_exit_set = set() - - -def validate_tearDownClass(): - if at_exit_set: - LOG.error("tearDownClass does not call the super's " - "tearDownClass in these classes: \n" - + str(at_exit_set)) - class BaseTestCase(BaseDeps): setUpClassCalled = False @@ -66,7 +57,6 @@ class BaseTestCase(BaseDeps): @classmethod def tearDownClass(cls): - at_exit_set.discard(cls) if hasattr(super(BaseTestCase, cls), 'tearDownClass'): super(BaseTestCase, cls).tearDownClass() @@ -76,7 +66,6 @@ class BaseTestCase(BaseDeps): raise RuntimeError("setUpClass does not calls the super's" "setUpClass in the " + self.__class__.__name__) - at_exit_set.add(self.__class__) test_timeout = os.environ.get('OS_TEST_TIMEOUT', 0) try: test_timeout = int(test_timeout) |