Home
last modified time | relevance | path

Searched refs:addCleanup (Results 1 – 22 of 22) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_subprocess.py120 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 …]
Dtest_quopri.py181 self.addCleanup(process.stdout.close)
192 self.addCleanup(process.stdout.close)
Dtest_linecache.py72 self.addCleanup(support.unlink, support.TESTFN)
98 self.addCleanup(support.unlink, source_name)
Dtest_socket.py280 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 …]
Dtest_threading.py333 self.addCleanup(p.stdout.close)
334 self.addCleanup(p.stderr.close)
359 self.addCleanup(p.stdout.close)
360 self.addCleanup(p.stderr.close)
Dtest_signal.py286 self.addCleanup(signal.signal, self.signum, oldhandler)
297 self.addCleanup(os.close, r)
323 self.addCleanup(os.waitpid, pid, 0)
Dtest_os.py725 self.addCleanup(proc.stdout.close)
726 self.addCleanup(proc.stderr.close)
727 self.addCleanup(proc.stdin.close)
Dtest_site.py105 self.addCleanup(lambda: os.remove(pth_fn))
Dtest_httpservers.py265 self.addCleanup(self.con.close)
Dtest_codecs.py472 self.addCleanup(test_support.unlink, test_support.TESTFN)
1533 self.addCleanup(test_support.unlink, test_support.TESTFN)
Dtest_csv.py329 self.addCleanup(csv.unregister_dialect, name)
337 self.addCleanup(csv.unregister_dialect, name)
Dtest_argparse.py38 self.addCleanup(env.__exit__)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_runner.py27 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)
Dtest_discovery.py42 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 …]
Dtest_program.py42 self.addCleanup(restoreParseArgs)
47 self.addCleanup(removeTest)
238 self.addCleanup(restore)
Dtest_result.py455 self.addCleanup(restore_traceback)
541 self.addCleanup(sys.modules.pop, 'Module')
560 self.addCleanup(sys.modules.pop, 'Module')
Dtest_case.py679 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)
Dtest_suite.py331 self.addCleanup(sys.modules.pop, 'Module')
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
Dtest_tool.py51 self.addCleanup(os.remove, infile)
65 self.addCleanup(os.remove, outfile)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_dist.py105 self.addCleanup(os.unlink, TESTFN)
Dtest_build_ext.py440 self.addCleanup(setattr, os, 'environ', orig_environ)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dcase.py221 def addCleanup(self, function, *args, **kwargs): member in TestCase