示例#1
0
 def __exit__(self, *args):
     """
     Stops all patched objects using 'with' context management.
     No error checking or stack trace evaluation occurs at the
     moment.
     """
     for patch in self.patch_objects:
         patch.stop()
示例#2
0
文件: case.py 项目: socek/impaf
 def tearDown(self):
     for patch in self._patchers:
         patch.stop()
示例#3
0
def unmock():
    patch.stop()
示例#4
0
def teardown_module():
    patch.stop()
示例#5
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
示例#6
0
def unmock():
    patch.stop()
示例#7
0
 def tearDown(self):
     for patch in self._patches:
         patch.stop()
示例#8
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
示例#9
0
def tearDownModule():
    for patch in PATCHES:
        patch.stop()