Searched refs:addCleanup (Results 1 – 25 of 276) sorted by relevance
12345678910>>...12
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_tooltip.py | 37 testobj.addCleanup(top.destroy) 41 testobj.addCleanup(button.destroy) 53 self.addCleanup(top.destroy) 57 self.addCleanup(button.destroy) 70 self.addCleanup(tooltip.hidetip) 77 self.addCleanup(tooltip.hidetip) 88 self.addCleanup(tooltip.hidetip) 95 self.addCleanup(tooltip.hidetip) 106 self.addCleanup(tooltip.hidetip) 120 self.addCleanup(tooltip.hidetip) [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_selectors.py | 54 self.addCleanup(rd.close) 55 self.addCleanup(wr.close) 60 self.addCleanup(s.close) 86 self.addCleanup(s.close) 101 self.addCleanup(s.close) 114 self.addCleanup(s.close) 124 self.addCleanup(os.close, r) 125 self.addCleanup(os.close, w) 131 self.addCleanup(s.close) 142 self.addCleanup(s.close) [all …]
|
D | test_urllib2net.py | 252 self.addCleanup(cfh.clear_cache) 265 self.addCleanup(u.close) 275 self.addCleanup(u.close) 287 self.addCleanup(u.close) 296 self.addCleanup(u.close) 306 self.addCleanup(u.close) 316 self.addCleanup(u.close) 328 self.addCleanup(u.close) 337 self.addCleanup(u.close)
|
D | test_keyword.py | 34 self.addCleanup(setattr, keyword, 'kwlist', oldlist) 61 self.addCleanup(support.unlink, TEST_PY_FILE) 69 self.addCleanup(support.unlink, TEST_PY_FILE) 91 self.addCleanup(support.unlink, GRAMMAR_TEST_FILE) 114 self.addCleanup(support.unlink, PY_FILE_WITHOUT_KEYWORDS) 116 self.addCleanup(support.unlink, TEST_PY_FILE)
|
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__')
|
D | test_subprocess.py | 172 self.addCleanup(tf.close) 201 self.addCleanup(tf.close) 251 self.addCleanup(p.stdout.close) 252 self.addCleanup(p.stderr.close) 273 self.addCleanup(p.stdout.close) 274 self.addCleanup(p.stderr.close) 283 self.addCleanup(p.stdout.close) 284 self.addCleanup(p.stdin.close) 348 self.addCleanup(p.stdout.close) 446 self.addCleanup(tf.close) [all …]
|
D | test_pdb.py | 1149 self.addCleanup(support.rmtree, '__pycache__') 1167 self.addCleanup(support.unlink, filename) 1181 self.addCleanup(support.rmtree, self.module_name) 1224 self.addCleanup(proc.stdout.close) 1259 self.addCleanup(support.unlink, 'bar.py') 1287 self.addCleanup(proc.stdout.close) 1399 self.addCleanup(support.rmtree, module_name) 1423 self.addCleanup(support.rmtree, self.module_name) 1461 self.addCleanup(support.rmtree, self.module_name)
|
D | test_genericpath.py | 101 self.addCleanup(support.unlink, filename) 112 self.addCleanup(support.unlink, filename) 131 self.addCleanup(support.unlink, filename) 198 self.addCleanup(support.unlink, file1) 199 self.addCleanup(support.unlink, file2) 212 self.addCleanup(support.unlink, test_fn1) 213 self.addCleanup(support.unlink, test_fn2) 237 self.addCleanup(support.unlink, test_fn1) 238 self.addCleanup(support.unlink, test_fn2) 253 self.addCleanup(support.unlink, test_fn1) [all …]
|
D | test__osx_support.py | 23 self.addCleanup(self.env.__exit__) 44 self.addCleanup(test.support.unlink, self.prog_name) 56 self.addCleanup(test.support.unlink, self.prog_name) 147 self.addCleanup(test.support.unlink, c_name) 202 self.addCleanup(test.support.unlink, c_name)
|
D | test_netrc.py | 16 self.addCleanup(os.unlink, temp_filename) 114 self.addCleanup(support.rmtree, d) 133 self.addCleanup(support.rmtree, d) 145 self.addCleanup(support.rmtree, fake_home)
|
D | test_trace.py | 105 self.addCleanup(sys.settrace, sys.gettrace()) 196 self.addCleanup(sys.settrace, sys.gettrace()) 223 self.addCleanup(sys.settrace, sys.gettrace()) 270 self.addCleanup(sys.settrace, sys.gettrace()) 297 self.addCleanup(sys.settrace, sys.gettrace()) 434 self.addCleanup(unlink, TESTFN) 441 self.addCleanup(unlink, TESTFN) 453 self.addCleanup(unlink, filename) 454 self.addCleanup(unlink, coverfilename)
|
D | test_signal.py | 114 self.addCleanup(os.close, r1) 115 self.addCleanup(os.close, w1) 117 self.addCleanup(os.close, r2) 118 self.addCleanup(os.close, w2) 131 self.addCleanup(sock1.close) 136 self.addCleanup(sock2.close) 150 self.addCleanup(os.close, rfd) 151 self.addCleanup(os.close, wfd) 1057 self.addCleanup(signal.signal, signum, old_handler) 1071 self.addCleanup(signal.setitimer, signal.ITIMER_REAL, 0)
|
D | test_openpty.py | 12 self.addCleanup(os.close, master) 13 self.addCleanup(os.close, slave)
|
/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)
|
D | test_openpty.py | 13 self.addCleanup(os.close, master) 14 self.addCleanup(os.close, slave)
|
/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 | 32 test.addCleanup(cleanup1, 1, 2, 3, four='hello', five='goodbye') 33 test.addCleanup(cleanup2) 58 test.addCleanup(cleanup1) 59 test.addCleanup(cleanup2) 91 test.addCleanup(cleanup1) 92 test.addCleanup(cleanup2) 108 test.addCleanup(cleanup1) 118 self.addCleanup(cleanup1) 130 test.addCleanup(cleanup2) 201 self.addCleanup(cleanup)
|
/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/eintrdata/ |
D | eintr_tester.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) 330 self.addCleanup(support.unlink, filename) 395 self.addCleanup(signal.signal, signum, old_handler) 407 self.addCleanup(signal.pthread_sigmask, signal.SIG_UNBLOCK, [signum]) 460 self.addCleanup(poller.close) 471 self.addCleanup(kqueue.close) [all …]
|
/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)
|
/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/tensorflow/tensorflow/python/keras/ |
D | callbacks_v1_test.py | 51 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 157 self.addCleanup(shutil.rmtree, tmpdir, ignore_errors=True) 265 self.addCleanup(shutil.rmtree, tmpdir, ignore_errors=True) 311 self.addCleanup(shutil.rmtree, tmpdir, ignore_errors=True) 360 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 416 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 449 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 471 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 525 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
|
12345678910>>...12