Searched refs:addCleanup (Results 1 – 22 of 22) sorted by relevance
120 self.addCleanup(p.stdout.close)121 self.addCleanup(p.stderr.close)132 self.addCleanup(p.stdin.close)133 self.addCleanup(p.stderr.close)141 self.addCleanup(p.stdout.close)142 self.addCleanup(p.stdin.close)203 self.addCleanup(p.stdout.close)232 self.addCleanup(p.stderr.close)265 self.addCleanup(p.stdout.close)301 self.addCleanup(p.stdout.close)[all …]
181 self.addCleanup(process.stdout.close)192 self.addCleanup(process.stdout.close)
72 self.addCleanup(support.unlink, support.TESTFN)98 self.addCleanup(support.unlink, source_name)
280 self.addCleanup(s.close)559 self.addCleanup(sock.close)577 self.addCleanup(sock.close)584 self.addCleanup(sock.close)625 self.addCleanup(s.close)773 self.addCleanup(sock.close)783 self.addCleanup(sock.close)1180 self.addCleanup(cli.close)1223 self.addCleanup(self.cli.close)1230 self.addCleanup(self.cli.close)[all …]
333 self.addCleanup(p.stdout.close)334 self.addCleanup(p.stderr.close)359 self.addCleanup(p.stdout.close)360 self.addCleanup(p.stderr.close)
286 self.addCleanup(signal.signal, self.signum, oldhandler)297 self.addCleanup(os.close, r)323 self.addCleanup(os.waitpid, pid, 0)
725 self.addCleanup(proc.stdout.close)726 self.addCleanup(proc.stderr.close)727 self.addCleanup(proc.stdin.close)
105 self.addCleanup(lambda: os.remove(pth_fn))
265 self.addCleanup(self.con.close)
472 self.addCleanup(test_support.unlink, test_support.TESTFN)1533 self.addCleanup(test_support.unlink, test_support.TESTFN)
329 self.addCleanup(csv.unregister_dialect, name)337 self.addCleanup(csv.unregister_dialect, name)
38 self.addCleanup(env.__exit__)
27 test.addCleanup(cleanup1, 1, 2, 3, four='hello', five='goodbye')28 test.addCleanup(cleanup2)62 test.addCleanup(cleanup1)63 test.addCleanup(cleanup2)93 test.addCleanup(cleanup1)94 test.addCleanup(cleanup2)110 test.addCleanup(cleanup1)120 self.addCleanup(cleanup1)132 test.addCleanup(cleanup2)173 self.addCleanup(cleanup)
42 self.addCleanup(restore_listdir)47 self.addCleanup(restore_isdir)53 self.addCleanup(restore_isfile)84 self.addCleanup(restore_listdir)87 self.addCleanup(restore_isdir)90 self.addCleanup(restore_isfile)142 self.addCleanup(restore_isfile)147 self.addCleanup(restore_path)161 self.addCleanup(restore_isdir)191 self.addCleanup(restore)[all …]
42 self.addCleanup(restoreParseArgs)47 self.addCleanup(removeTest)238 self.addCleanup(restore)
455 self.addCleanup(restore_traceback)541 self.addCleanup(sys.modules.pop, 'Module')560 self.addCleanup(sys.modules.pop, 'Module')
679 self.addCleanup(lambda: setattr(self, '_diffThreshold', old_threshold))697 self.addCleanup(lambda: setattr(self, '_truncateMessage', old_truncate))1074 self.addCleanup(_raise)1099 self.addCleanup(_raise)
331 self.addCleanup(sys.modules.pop, 'Module')
51 self.addCleanup(os.remove, infile)65 self.addCleanup(os.remove, outfile)
105 self.addCleanup(os.unlink, TESTFN)
440 self.addCleanup(setattr, os, 'environ', orig_environ)
221 def addCleanup(self, function, *args, **kwargs): member in TestCase