From 0915a0026bbaecc95e0b414576a182d6492a7680 Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Fri, 26 Sep 2014 14:20:34 +0900 Subject: [PATCH] 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 --- tempest_lib/base.py | 11 ----------- 1 file changed, 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)