Remove unused method and variable in base.py

base.py was migrated and simplified by
 commit: 45da2a78dc
But there are some unused codes in it. This commit just removes them.

Change-Id: Ie16fdf75b69006cf48ad9b2649c4bf3659901b80
This commit is contained in:
Masayuki Igawa
2014-09-26 14:20:34 +09:00
parent 0ade1d96d0
commit 0915a0026b

View File

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