Searched refs:addCleanup (Results 1 – 25 of 319) sorted by relevance
12345678910>>...13
/external/python/cpython3/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 …]
|
/external/python/cpython3/Lib/test/ |
D | test_selectors.py | 55 self.addCleanup(rd.close) 56 self.addCleanup(wr.close) 61 self.addCleanup(s.close) 87 self.addCleanup(s.close) 102 self.addCleanup(s.close) 115 self.addCleanup(s.close) 125 self.addCleanup(os.close, r) 126 self.addCleanup(os.close, w) 132 self.addCleanup(s.close) 143 self.addCleanup(s.close) [all …]
|
D | test_msilib.py | 43 self.addCleanup(unlink, db_path) 53 self.addCleanup(unlink, db_path) 94 self.addCleanup(unlink, db_path) 98 self.addCleanup(unlink, db_path) 99 self.addCleanup(db.Close) 100 self.addCleanup(msilib._directories.clear) 109 self.addCleanup(unlink, db_path) 110 self.addCleanup(db.Close)
|
D | test_urllib2net.py | 85 self.addCleanup(urllib.request.urlcleanup) 254 self.addCleanup(cfh.clear_cache) 264 self.addCleanup(urllib.request.urlcleanup) 271 self.addCleanup(u.close) 281 self.addCleanup(u.close) 293 self.addCleanup(u.close) 302 self.addCleanup(u.close) 312 self.addCleanup(u.close) 322 self.addCleanup(u.close) 334 self.addCleanup(u.close) [all …]
|
D | test_pdb.py | 1235 self.addCleanup(support.rmtree, '__pycache__') 1254 self.addCleanup(support.unlink, filename) 1268 self.addCleanup(support.rmtree, self.module_name) 1336 self.addCleanup(proc.stdout.close) 1371 self.addCleanup(support.unlink, 'bar.py') 1400 self.addCleanup(proc.stdout.close) 1430 self.addCleanup(proc.stdout.close) 1555 self.addCleanup(support.rmtree, module_name) 1579 self.addCleanup(support.rmtree, self.module_name) 1617 self.addCleanup(support.rmtree, self.module_name)
|
D | test_subprocess.py | 182 self.addCleanup(tf.close) 211 self.addCleanup(tf.close) 261 self.addCleanup(p.stdout.close) 262 self.addCleanup(p.stderr.close) 283 self.addCleanup(p.stdout.close) 284 self.addCleanup(p.stderr.close) 293 self.addCleanup(p.stdout.close) 294 self.addCleanup(p.stdin.close) 382 self.addCleanup(p.stdout.close) 485 self.addCleanup(tf.close) [all …]
|
D | test_ntpath.py | 262 self.addCleanup(support.unlink, ABSTFN) 263 self.addCleanup(support.unlink, ABSTFN + "1") 275 self.addCleanup(support.unlink, ABSTFN) 276 self.addCleanup(support.unlink, ABSTFN + "1") 286 self.addCleanup(support.rmtree, ABSTFN) 344 self.addCleanup(support.unlink, ABSTFN) 345 self.addCleanup(support.unlink, ABSTFN + "1") 346 self.addCleanup(support.unlink, ABSTFN + "2") 347 self.addCleanup(support.unlink, ABSTFN + "y") 348 self.addCleanup(support.unlink, ABSTFN + "c") [all …]
|
D | test_netrc.py | 15 self.addCleanup(os.unlink, temp_filename) 113 self.addCleanup(support.rmtree, d) 132 self.addCleanup(support.rmtree, d) 144 self.addCleanup(support.rmtree, fake_home)
|
D | test_genericpath.py | 101 self.addCleanup(support.unlink, filename) 112 self.addCleanup(support.unlink, filename) 131 self.addCleanup(support.unlink, filename) 218 self.addCleanup(support.unlink, file1) 219 self.addCleanup(support.unlink, file2) 232 self.addCleanup(support.unlink, test_fn1) 233 self.addCleanup(support.unlink, test_fn2) 257 self.addCleanup(support.unlink, test_fn1) 258 self.addCleanup(support.unlink, test_fn2) 273 self.addCleanup(support.unlink, test_fn1) [all …]
|
D | test_signal.py | 170 self.addCleanup(os.close, r1) 171 self.addCleanup(os.close, w1) 173 self.addCleanup(os.close, r2) 174 self.addCleanup(os.close, w2) 187 self.addCleanup(sock1.close) 192 self.addCleanup(sock2.close) 206 self.addCleanup(os.close, rfd) 207 self.addCleanup(os.close, wfd) 1010 self.addCleanup(signal.pthread_sigmask, signal.SIG_SETMASK, s) 1127 self.addCleanup(signal.signal, signum, old_handler) [all …]
|
D | test_smtplib.py | 280 self.addCleanup(smtp.close) 292 self.addCleanup(smtp.close) 300 self.addCleanup(smtp.close) 309 self.addCleanup(smtp.close) 318 self.addCleanup(smtp.close) 327 self.addCleanup(smtp.close) 339 self.addCleanup(smtp.close) 348 self.addCleanup(smtp.close) 358 self.addCleanup(smtp.close) 376 self.addCleanup(smtp.close) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_subprocess.py | 157 self.addCleanup(p.stdout.close) 158 self.addCleanup(p.stderr.close) 179 self.addCleanup(p.stdout.close) 180 self.addCleanup(p.stderr.close) 189 self.addCleanup(p.stdout.close) 190 self.addCleanup(p.stdin.close) 251 self.addCleanup(p.stdout.close) 280 self.addCleanup(p.stderr.close) 334 self.addCleanup(p.stdout.close) 364 self.addCleanup(p.stdout.close) [all …]
|
D | test_pdb.py | 23 self.addCleanup(test_support.unlink, filename) 65 self.addCleanup(test_support.unlink, 'bar.py') 66 self.addCleanup(test_support.unlink, 'bar.pyc') 367 self.addCleanup(os.remove, test_fn)
|
D | test__osx_support.py | 24 self.addCleanup(self.env.__exit__) 45 self.addCleanup(test.test_support.unlink, self.prog_name) 57 self.addCleanup(test.test_support.unlink, self.prog_name) 148 self.addCleanup(test.test_support.unlink, c_name) 203 self.addCleanup(test.test_support.unlink, c_name)
|
/external/python/cpython3/Lib/unittest/test/ |
D | test_discovery.py | 60 self.addCleanup(restore_listdir) 65 self.addCleanup(restore_isdir) 71 self.addCleanup(restore_isfile) 111 self.addCleanup(restore_listdir) 114 self.addCleanup(restore_isdir) 117 self.addCleanup(restore_isfile) 150 self.addCleanup(restore_listdir) 153 self.addCleanup(restore_isdir) 156 self.addCleanup(restore_isfile) 224 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) 270 self.addCleanup(cleanup, ordering, blowUp=True) [all …]
|
/external/python/cpython2/Lib/unittest/test/ |
D | test_runner.py | 28 test.addCleanup(cleanup1, 1, 2, 3, four='hello', five='goodbye') 29 test.addCleanup(cleanup2) 63 test.addCleanup(cleanup1) 64 test.addCleanup(cleanup2) 94 test.addCleanup(cleanup1) 95 test.addCleanup(cleanup2) 111 test.addCleanup(cleanup1) 121 self.addCleanup(cleanup1) 133 test.addCleanup(cleanup2) 187 self.addCleanup(cleanup)
|
D | test_discovery.py | 43 self.addCleanup(restore_listdir) 48 self.addCleanup(restore_isdir) 54 self.addCleanup(restore_isfile) 85 self.addCleanup(restore_listdir) 88 self.addCleanup(restore_isdir) 91 self.addCleanup(restore_isfile) 143 self.addCleanup(restore_isfile) 148 self.addCleanup(restore_path) 162 self.addCleanup(restore_isdir) 192 self.addCleanup(restore) [all …]
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_threaded_import.py | 200 self.addCleanup(shutil.rmtree, TESTFN) 202 self.addCleanup(sys.path.remove, TESTFN) 207 self.addCleanup(forget, name) 236 self.addCleanup(sys.path.remove, os.curdir) 240 self.addCleanup(unlink, filename) 241 self.addCleanup(forget, TESTFN) 242 self.addCleanup(rmtree, '__pycache__')
|
/external/python/cpython3/Lib/test/eintrdata/ |
D | eintr_tester.py | 117 self.addCleanup(os.close, rd) 146 self.addCleanup(os.close, wr) 190 self.addCleanup(rd.close) 232 self.addCleanup(wr.close) 288 self.addCleanup(sock.close) 326 self.addCleanup(support.unlink, filename) 391 self.addCleanup(signal.signal, signum, old_handler) 403 self.addCleanup(signal.pthread_sigmask, signal.SIG_UNBLOCK, [signum]) 456 self.addCleanup(poller.close) 467 self.addCleanup(kqueue.close) [all …]
|
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/test/ |
D | test_discovery.py | 46 self.addCleanup(restore_listdir) 51 self.addCleanup(restore_isdir) 57 self.addCleanup(restore_isfile) 91 self.addCleanup(restore_listdir) 94 self.addCleanup(restore_isdir) 97 self.addCleanup(restore_isfile) 154 self.addCleanup(restore_isfile) 160 self.addCleanup(restore_path) 175 self.addCleanup(restore_isdir) 207 self.addCleanup(restore) [all …]
|
/external/toolchain-utils/heatmaps/ |
D | heatmap_generator_test.py | 78 self.addCleanup(_cleanup, fname) 94 self.addCleanup(_cleanup, fname) 113 self.addCleanup(_cleanup, fname) 132 self.addCleanup(_cleanup, fname) 149 self.addCleanup(_cleanup, fname) 189 self.addCleanup(_cleanup, fname) 210 self.addCleanup(_cleanup, fname) 229 self.addCleanup(_cleanup, fname)
|
/external/toolchain-utils/afdo_tools/bisection/ |
D | afdo_prof_analysis_e2e_test.py | 90 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 129 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 175 self.addCleanup(shutil.rmtree, scripts_tmp_dir, ignore_errors=True) 195 self.addCleanup(os.remove, finished_state_file) 237 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 262 self.addCleanup(rm_state)
|
/external/python/mock/mock/tests/ |
D | testcallable.py | 60 self.addCleanup(patcher.stop) 72 self.addCleanup(patcher.stop) 84 self.addCleanup(patcher.stop) 93 self.addCleanup(patcher.stop)
|
/external/python/cpython3/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)
|
12345678910>>...13