Fix AttributeError bug in TestCaseFunction.teardown by creating TestCaseFunction._testcase as attribute of class with a None default.

This commit is contained in:
Wes Thomas
2018-08-08 18:13:21 -05:00
parent e723069165
commit aa358433b0
3 changed files with 23 additions and 0 deletions
+1
View File
@@ -69,6 +69,7 @@ class UnitTestCase(Class):
class TestCaseFunction(Function):
nofuncargs = True
_excinfo = None
_testcase = None
def setup(self):
self._testcase = self.parent.obj(self.name)