UT: Fix "RuntimeError: stop called on unstarted patcher"

By removing explicit addCleanup calls.

Closes-Bug: #1608303
Change-Id: I3744e7378cc809f1a5b1e1384d82ec154f6e2819
This commit is contained in:
YAMAMOTO Takashi 2016-08-01 08:04:35 +09:00
parent c612a729e7
commit fa5f520bfa
2 changed files with 0 additions and 2 deletions

View File

@ -34,7 +34,6 @@ class CLITestV20TapFlowJSON(test_cli20.CLITestV20Base):
def _create_patch(self, name, func=None):
patcher = mock.patch(name)
thing = patcher.start()
self.addCleanup(patcher.stop)
return thing
def _mock_extension_loading(self):

View File

@ -34,7 +34,6 @@ class CLITestV20TapServiceJSON(test_cli20.CLITestV20Base):
def _create_patch(self, name, func=None):
patcher = mock.patch(name)
thing = patcher.start()
self.addCleanup(patcher.stop)
return thing
def _mock_extension_loading(self):