Home
last modified time | relevance | path

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

12345678910>>...12

/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_tooltip.py37 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/
Dtest_selectors.py54 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 …]
Dtest_urllib2net.py252 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)
Dtest_keyword.py34 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)
Dtest_threaded_import.py200 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__')
Dtest_subprocess.py172 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 …]
Dtest_pdb.py1149 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)
Dtest_genericpath.py101 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 …]
Dtest__osx_support.py23 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)
Dtest_netrc.py16 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)
Dtest_trace.py105 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)
Dtest_signal.py114 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)
Dtest_openpty.py12 self.addCleanup(os.close, master)
13 self.addCleanup(os.close, slave)
/external/python/cpython2/Lib/test/
Dtest_subprocess.py157 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 …]
Dtest_pdb.py23 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)
Dtest__osx_support.py24 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)
Dtest_openpty.py13 self.addCleanup(os.close, master)
14 self.addCleanup(os.close, slave)
/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py60 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 …]
Dtest_runner.py32 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/
Dtest_runner.py28 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)
Dtest_discovery.py43 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/
Deintr_tester.py118 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/
Dtestcallable.py60 self.addCleanup(patcher.stop)
72 self.addCleanup(patcher.stop)
84 self.addCleanup(patcher.stop)
93 self.addCleanup(patcher.stop)
/external/python/mock/mock/tests/
Dtestcallable.py60 self.addCleanup(patcher.stop)
72 self.addCleanup(patcher.stop)
84 self.addCleanup(patcher.stop)
93 self.addCleanup(patcher.stop)
/external/tensorflow/tensorflow/python/keras/
Dcallbacks_v1_test.py51 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