Skip to content
Snippets Groups Projects
Commit dff73c7d authored by Nathaniel Manista's avatar Nathaniel Manista
Browse files

Drop invoker during test tear-down

The invoker is an object derived from, and referring to, objects of the
Face implementation under test. If those objects are to be garbage
collected at the appropriate time the invoker that references them must
be made eligible for garbage collection in the test's tearDown method.
parent 68e63c7f
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,7 @@ class TestCase(test_coverage.Coverage, unittest.TestCase): ...@@ -73,6 +73,7 @@ class TestCase(test_coverage.Coverage, unittest.TestCase):
Overriding implementations must call this implementation. Overriding implementations must call this implementation.
""" """
self._invoker = None
self.implementation.destantiate(self._memo) self.implementation.destantiate(self._memo)
def testSuccessfulUnaryRequestUnaryResponse(self): def testSuccessfulUnaryRequestUnaryResponse(self):
......
...@@ -74,6 +74,7 @@ class TestCase(test_coverage.Coverage, unittest.TestCase): ...@@ -74,6 +74,7 @@ class TestCase(test_coverage.Coverage, unittest.TestCase):
Overriding implementations must call this implementation. Overriding implementations must call this implementation.
""" """
self._invoker = None
self.implementation.destantiate(self._memo) self.implementation.destantiate(self._memo)
def testSuccessfulUnaryRequestUnaryResponse(self): def testSuccessfulUnaryRequestUnaryResponse(self):
......
...@@ -103,6 +103,7 @@ class TestCase(test_coverage.Coverage, unittest.TestCase): ...@@ -103,6 +103,7 @@ class TestCase(test_coverage.Coverage, unittest.TestCase):
Overriding implementations must call this implementation. Overriding implementations must call this implementation.
""" """
self._invoker = None
self.implementation.destantiate(self._memo) self.implementation.destantiate(self._memo)
self._digest_pool.shutdown(wait=True) self._digest_pool.shutdown(wait=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment