Commit afded53a authored by Ralf Schmitt's avatar Ralf Schmitt

greentest/: pep8

parent 1e156981
...@@ -91,7 +91,7 @@ class TestCase(BaseTestCase): ...@@ -91,7 +91,7 @@ class TestCase(BaseTestCase):
@property @property
def testcasename(self): def testcasename(self):
return self.__class__.__name__ + '.' + self.testname return self.__class__.__name__ + '.' + self.testname
@property @property
def modulename(self): def modulename(self):
test_method = getattr(self, self.testname) test_method = getattr(self, self.testname)
...@@ -101,7 +101,6 @@ class TestCase(BaseTestCase): ...@@ -101,7 +101,6 @@ class TestCase(BaseTestCase):
def fullname(self): def fullname(self):
return splitext(basename(self.modulename))[0] + '.' + self.testcasename return splitext(basename(self.modulename))[0] + '.' + self.testcasename
def hook_stderr(self): def hook_stderr(self):
if VERBOSE: if VERBOSE:
return return
......
...@@ -20,6 +20,7 @@ test_socket.GeneralModuleTests.* ...@@ -20,6 +20,7 @@ test_socket.GeneralModuleTests.*
tests = [x.strip().replace('\.', '\\.').replace('*', '.*?') for x in tests.split('\n') if x.strip()] tests = [x.strip().replace('\.', '\\.').replace('*', '.*?') for x in tests.split('\n') if x.strip()]
tests = re.compile('^%s$' % '|'.join(tests)) tests = re.compile('^%s$' % '|'.join(tests))
def get_switch_expected(fullname): def get_switch_expected(fullname):
""" """
>>> get_switch_expected('test_select.SelectTestCase.test_error_conditions') >>> get_switch_expected('test_select.SelectTestCase.test_error_conditions')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment