/third_party/python/Lib/test/ |
D | test_selectors.py | 56 self.addCleanup(rd.close) 57 self.addCleanup(wr.close) 62 self.addCleanup(s.close) 88 self.addCleanup(s.close) 103 self.addCleanup(s.close) 116 self.addCleanup(s.close) 126 self.addCleanup(os.close, r) 127 self.addCleanup(os.close, w) 133 self.addCleanup(s.close) 144 self.addCleanup(s.close) [all …]
|
D | test_msilib.py | 44 self.addCleanup(unlink, db_path) 54 self.addCleanup(unlink, db_path) 95 self.addCleanup(unlink, db_path) 99 self.addCleanup(unlink, db_path) 100 self.addCleanup(db.Close) 101 self.addCleanup(msilib._directories.clear) 110 self.addCleanup(unlink, db_path) 111 self.addCleanup(db.Close) 119 self.addCleanup(unlink, filepath) 122 self.addCleanup(unlink, cabpath)
|
D | test_urllib2net.py | 120 self.addCleanup(urllib.request.urlcleanup) 289 self.addCleanup(cfh.clear_cache) 299 self.addCleanup(urllib.request.urlcleanup) 306 self.addCleanup(u.close) 316 self.addCleanup(u.close) 328 self.addCleanup(u.close) 337 self.addCleanup(u.close) 347 self.addCleanup(u.close) 357 self.addCleanup(u.close) 369 self.addCleanup(u.close) [all …]
|
D | test_ntpath.py | 264 self.addCleanup(os_helper.unlink, ABSTFN) 265 self.addCleanup(os_helper.unlink, ABSTFN + "1") 279 self.addCleanup(os_helper.unlink, ABSTFN) 288 self.addCleanup(os_helper.unlink, ABSTFN) 289 self.addCleanup(os_helper.unlink, ABSTFN + "1") 299 self.addCleanup(os_helper.rmtree, ABSTFN) 358 self.addCleanup(os_helper.unlink, ABSTFN) 359 self.addCleanup(os_helper.unlink, ABSTFN + "1") 360 self.addCleanup(os_helper.unlink, ABSTFN + "2") 361 self.addCleanup(os_helper.unlink, ABSTFN + "y") [all …]
|
D | _test_eintr.py | 118 self.addCleanup(os.close, rd) 147 self.addCleanup(os.close, wr) 191 self.addCleanup(rd.close) 233 self.addCleanup(wr.close) 289 self.addCleanup(sock.close) 327 self.addCleanup(os_helper.unlink, filename) 392 self.addCleanup(signal.signal, signum, old_handler) 404 self.addCleanup(signal.pthread_sigmask, signal.SIG_UNBLOCK, [signum]) 457 self.addCleanup(poller.close) 468 self.addCleanup(kqueue.close) [all …]
|
D | test_subprocess.py | 191 self.addCleanup(tf.close) 242 self.addCleanup(tf.close) 292 self.addCleanup(p.stdout.close) 293 self.addCleanup(p.stderr.close) 314 self.addCleanup(p.stdout.close) 315 self.addCleanup(p.stderr.close) 324 self.addCleanup(p.stdout.close) 325 self.addCleanup(p.stdin.close) 413 self.addCleanup(p.stdout.close) 516 self.addCleanup(tf.close) [all …]
|
D | test_pdb.py | 1360 self.addCleanup(os_helper.rmtree, '__pycache__') 1379 self.addCleanup(os_helper.unlink, filename) 1393 self.addCleanup(os_helper.rmtree, self.module_name) 1461 self.addCleanup(proc.stdout.close) 1496 self.addCleanup(os_helper.unlink, 'bar.py') 1525 self.addCleanup(proc.stdout.close) 1555 self.addCleanup(proc.stdout.close) 1693 self.addCleanup(os_helper.rmtree, module_name) 1706 self.addCleanup(os_helper.rmtree, pkg_name) 1731 self.addCleanup(os_helper.rmtree, self.module_name) [all …]
|
D | test_pty.py | 98 self.addCleanup(signal.signal, signal.SIGALRM, old_alarm) 101 self.addCleanup(signal.signal, signal.SIGHUP, old_sighup) 105 self.addCleanup(signal.alarm, 0) 118 self.addCleanup(_set_term_winsz, pty.STDIN_FILENO, old_stdin_winsz) 176 self.addCleanup(os.close, master_fd) 177 self.addCleanup(os.close, slave_fd) 217 self.addCleanup(os.close, master_fd) 302 self.addCleanup(os.close, master_fd)
|
D | test_smtplib.py | 295 self.addCleanup(smtp.close) 307 self.addCleanup(smtp.close) 315 self.addCleanup(smtp.close) 324 self.addCleanup(smtp.close) 333 self.addCleanup(smtp.close) 343 self.addCleanup(smtp.close) 352 self.addCleanup(smtp.close) 364 self.addCleanup(smtp.close) 373 self.addCleanup(smtp.close) 383 self.addCleanup(smtp.close) [all …]
|
D | test_signal.py | 181 self.addCleanup(os.close, r1) 182 self.addCleanup(os.close, w1) 184 self.addCleanup(os.close, r2) 185 self.addCleanup(os.close, w2) 198 self.addCleanup(sock1.close) 203 self.addCleanup(sock2.close) 217 self.addCleanup(os.close, rfd) 218 self.addCleanup(os.close, wfd) 1028 self.addCleanup(signal.pthread_sigmask, signal.SIG_SETMASK, s) 1145 self.addCleanup(signal.signal, signum, old_handler) [all …]
|
D | test_genericpath.py | 102 self.addCleanup(os_helper.unlink, filename) 113 self.addCleanup(os_helper.unlink, filename) 132 self.addCleanup(os_helper.unlink, filename) 219 self.addCleanup(os_helper.unlink, file1) 220 self.addCleanup(os_helper.unlink, file2) 233 self.addCleanup(os_helper.unlink, test_fn1) 234 self.addCleanup(os_helper.unlink, test_fn2) 258 self.addCleanup(os_helper.unlink, test_fn1) 259 self.addCleanup(os_helper.unlink, test_fn2) 274 self.addCleanup(os_helper.unlink, test_fn1) [all …]
|
D | test__osx_support.py | 23 self.addCleanup(self.env.__exit__) 44 self.addCleanup(os_helper.unlink, self.prog_name) 56 self.addCleanup(os_helper.unlink, self.prog_name) 147 self.addCleanup(os_helper.unlink, c_name) 225 self.addCleanup(os_helper.unlink, c_name)
|
D | test_trace.py | 122 self.addCleanup(sys.settrace, sys.gettrace()) 232 self.addCleanup(sys.settrace, sys.gettrace()) 259 self.addCleanup(sys.settrace, sys.gettrace()) 326 self.addCleanup(sys.settrace, sys.gettrace()) 353 self.addCleanup(sys.settrace, sys.gettrace()) 495 self.addCleanup(unlink, filename) 505 self.addCleanup(unlink, TESTFN) 519 self.addCleanup(unlink, filename) 520 self.addCleanup(unlink, coverfilename)
|
D | test_os.py | 230 self.addCleanup(os_helper.unlink, os_helper.TESTFN) 288 self.addCleanup(os_helper.unlink, os_helper.TESTFN) 289 self.addCleanup(os_helper.unlink, TESTFN2) 323 self.addCleanup(os_helper.unlink, os_helper.TESTFN) 326 self.addCleanup(in_file.close) 330 self.addCleanup(os_helper.unlink, TESTFN2) 331 self.addCleanup(out_file.close) 360 self.addCleanup(os_helper.unlink, os_helper.TESTFN) 363 self.addCleanup(in_file.close) 367 self.addCleanup(os_helper.unlink, TESTFN4) [all …]
|
D | test_openpty.py | 12 self.addCleanup(os.close, master) 13 self.addCleanup(os.close, slave)
|
D | test_shelve.py | 68 self.addCleanup(os_helper.rmtree, self.dirname) 179 self.addCleanup(x.close) 185 self.addCleanup(os_helper.rmtree, dirname) 187 self.addCleanup(setattr, dbm, '_defaultmod', dbm._defaultmod)
|
D | test_dbm.py | 150 self.addCleanup(setattr, dbm, '_defaultmod', dbm._defaultmod) 152 self.addCleanup(cleaunup_test_dir) 158 self.addCleanup(setattr, dbm, '_defaultmod', dbm._defaultmod) 184 self.addCleanup(cleaunup_test_dir)
|
D | test_poll.py | 128 self.addCleanup(proc.__exit__, None, None, None) 184 self.addCleanup(os.close, r) 185 self.addCleanup(os.close, w) 189 self.addCleanup(os.close, fd)
|
/third_party/python/Lib/idlelib/idle_test/ |
D | test_tooltip.py | 41 testobj.addCleanup(top.destroy) 45 testobj.addCleanup(button.destroy) 57 self.addCleanup(top.destroy) 61 self.addCleanup(button.destroy) 77 self.addCleanup(tooltip.hidetip) 84 self.addCleanup(tooltip.hidetip) 95 self.addCleanup(tooltip.hidetip) 102 self.addCleanup(tooltip.hidetip) 116 self.addCleanup(tooltip1.hidetip) 128 self.addCleanup(tooltip2.hidetip) [all …]
|
/third_party/python/Lib/unittest/test/ |
D | test_discovery.py | 61 self.addCleanup(restore_listdir) 66 self.addCleanup(restore_isdir) 72 self.addCleanup(restore_isfile) 112 self.addCleanup(restore_listdir) 115 self.addCleanup(restore_isdir) 118 self.addCleanup(restore_isfile) 151 self.addCleanup(restore_listdir) 154 self.addCleanup(restore_isdir) 157 self.addCleanup(restore_isfile) 225 self.addCleanup(restore_listdir) [all …]
|
D | test_runner.py | 65 test.addCleanup(cleanup1, 1, 2, 3, four='hello', five='goodbye') 66 test.addCleanup(cleanup2) 91 test.addCleanup(cleanup1) 92 test.addCleanup(cleanup2) 124 test.addCleanup(cleanup1) 125 test.addCleanup(cleanup2) 141 test.addCleanup(cleanup1) 151 self.addCleanup(cleanup1) 163 test.addCleanup(cleanup2) 340 self.addCleanup(cleanup, ordering, blowUp=True) [all …]
|
/third_party/python/Lib/test/test_importlib/ |
D | test_threaded_import.py | 201 self.addCleanup(shutil.rmtree, TESTFN) 203 self.addCleanup(sys.path.remove, TESTFN) 208 self.addCleanup(forget, name) 237 self.addCleanup(sys.path.remove, os.curdir) 241 self.addCleanup(unlink, filename) 242 self.addCleanup(forget, TESTFN) 243 self.addCleanup(rmtree, '__pycache__')
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testcallable.py | 60 self.addCleanup(patcher.stop) 72 self.addCleanup(patcher.stop) 84 self.addCleanup(patcher.stop) 93 self.addCleanup(patcher.stop)
|
/third_party/node/lib/internal/bootstrap/switches/ |
D | is_main_thread.js | 140 function addCleanup(fn) { function 157 addCleanup(function cleanupStdout() { 178 addCleanup(function cleanupStderr() { 272 addCleanup(function cleanupStdin() {
|
/third_party/python/Lib/test/test_json/ |
D | test_tool.py | 97 self.addCleanup(os.remove, infile) 127 self.addCleanup(os.remove, outfile) 203 self.addCleanup(os.remove, outfile) 214 self.addCleanup(os.remove, outfile)
|