Lines Matching full:support
10 from test import support
12 TESTFN = support.TESTFN
18 support.import_module("ftplib")
19 self.assertRaises(unittest.SkipTest, support.import_module, "foo")
22 support.import_fresh_module("ftplib")
25 self.assertEqual(support.get_attribute(self, "test_get_attribute"),
27 self.assertRaises(unittest.SkipTest, support.get_attribute, self, "foo")
31 self.assertEqual(support.get_original_stdout(), sys.stdout)
36 support.unload("sched")
42 support.unlink(TESTFN)
44 support.unlink(TESTFN)
47 dirpath = support.TESTFN + 'd'
51 support.rmtree(dirpath)
53 with support.swap_attr(support, 'verbose', 0):
54 support.rmtree(dirpath)
59 with support.swap_attr(support, 'verbose', 0):
60 support.rmtree(dirpath)
66 with support.swap_attr(support, 'verbose', 0):
67 support.rmtree(dirpath)
80 support.forget(TESTFN)
84 support.unlink(mod_filename)
85 support.rmtree('__pycache__')
89 s.bind((support.HOST, 0))
93 port = support.find_unused_port()
95 s.bind((support.HOST, port))
100 support.bind_port(s)
114 with support.temp_dir(path) as temp_path:
119 support.rmtree(parent_dir)
123 with support.temp_dir() as temp_path:
130 with support.temp_dir(path) as temp_path:
149 with support.check_warnings() as recorder:
150 with support.temp_dir(path, quiet=True) as temp_path:
166 with support.temp_dir() as temp_path:
167 with support.change_cwd(temp_path) as new_cwd:
178 with support.change_cwd(path) as new_cwd:
181 with support.temp_dir() as parent_dir:
192 with support.temp_dir() as parent_dir:
194 with support.check_warnings() as recorder:
195 with support.change_cwd(bad_dir, quiet=True) as new_cwd:
208 with support.check_warnings() as recorder:
209 with support.change_cwd(path=path, quiet=True):
218 with support.temp_cwd(name=TESTFN):
227 with support.temp_cwd(name=None) as new_cwd:
234 self.assertEqual(support.sortdict({3:3, 2:2, 1:1}), "{1: 1, 2: 2, 3: 3}")
237 fd = support.make_bad_fd()
243 support.check_syntax_error(self, "def class", lineno=1, offset=9)
245 support.check_syntax_error(self, "x=1")
249 with support.CleanImport("asyncore"):
253 with support.DirsOnSysPath('foo', 'bar'):
260 with support.captured_stdout() as stdout:
265 with support.captured_stderr() as stderr:
270 with support.captured_stdin() as stdin:
278 support.gc_collect()
281 self.assertIsInstance(support.python_is_optimized(), bool)
287 with support.swap_attr(obj, "x", 5):
293 with support.swap_item(D, "item", 5):
310 missing_items = support.detect_api_mismatch(self.RefClass,
314 missing_items = support.detect_api_mismatch(self.OtherClass,
321 missing_items = support.detect_api_mismatch(
325 missing_items = support.detect_api_mismatch(
332 support.check__all__(self,
340 support.check__all__(self,
349 self.assertRaises(AssertionError, support.check__all__, self, unittest)
381 support.run_unittest(*tests)