Home
last modified time | relevance | path

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

12345678910>>...12

/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_tooltip.py41 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/
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_msilib.py43 self.addCleanup(unlink, db_path)
84 self.addCleanup(unlink, db_path)
88 self.addCleanup(unlink, db_path)
89 self.addCleanup(db.Close)
90 self.addCleanup(msilib._directories.clear)
99 self.addCleanup(unlink, db_path)
100 self.addCleanup(db.Close)
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_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_pdb.py1193 self.addCleanup(support.rmtree, '__pycache__')
1211 self.addCleanup(support.unlink, filename)
1225 self.addCleanup(support.rmtree, self.module_name)
1268 self.addCleanup(proc.stdout.close)
1303 self.addCleanup(support.unlink, 'bar.py')
1331 self.addCleanup(proc.stdout.close)
1360 self.addCleanup(proc.stdout.close)
1485 self.addCleanup(support.rmtree, module_name)
1509 self.addCleanup(support.rmtree, self.module_name)
1547 self.addCleanup(support.rmtree, self.module_name)
Dtest_subprocess.py181 self.addCleanup(tf.close)
210 self.addCleanup(tf.close)
260 self.addCleanup(p.stdout.close)
261 self.addCleanup(p.stderr.close)
282 self.addCleanup(p.stdout.close)
283 self.addCleanup(p.stderr.close)
292 self.addCleanup(p.stdout.close)
293 self.addCleanup(p.stdin.close)
379 self.addCleanup(p.stdout.close)
482 self.addCleanup(tf.close)
[all …]
Dtest_ntpath.py262 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 …]
Dtest_smtplib.py257 self.addCleanup(smtp.close)
268 self.addCleanup(smtp.close)
275 self.addCleanup(smtp.close)
283 self.addCleanup(smtp.close)
291 self.addCleanup(smtp.close)
299 self.addCleanup(smtp.close)
310 self.addCleanup(smtp.close)
318 self.addCleanup(smtp.close)
327 self.addCleanup(smtp.close)
344 self.addCleanup(smtp.close)
[all …]
Dtest_genericpath.py101 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 …]
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.py15 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)
Dtest_signal.py170 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 …]
/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)
/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.py65 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/
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)
327 self.addCleanup(support.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 …]
/external/toolchain-utils/heatmaps/
Dheatmap_generator_test.py78 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/
Dafdo_prof_analysis_e2e_test.py90 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/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)

12345678910>>...12