Home
last modified time | relevance | path

Searched refs:test_src (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_zipimport_support.py77 test_src = "def foo(): pass\n"
79 init_name = make_script(d, '__init__', test_src)
87 self.assertEqual(inspect.getsource(zip_pkg.foo), test_src)
95 test_src = inspect.getsource(test_doctest)
96 test_src = test_src.replace(
99 test_src = test_src.replace("test.test_doctest",
101 test_src = test_src.replace("test.sample_doctest",
117 test_src)
195 test_src = textwrap.dedent("""\
205 script_name = make_script(d, 'script', test_src)
[all …]
Dtest_importhooks.py8 test_src = """\ variable
20 reload_src = test_src+"""\
24 test_co = compile(test_src, "<???>", "exec")
27 test2_oldabs_co = compile(absimp + test_src, "<???>", "exec")
28 test2_newabs_co = compile(futimp + absimp + test_src, "<???>", "exec")
29 test2_newrel_co = compile(relimp + test_src, "<???>", "exec")
30 test2_deeprel_co = compile(deeprelimp + test_src, "<???>", "exec")
31 test2_futrel_co = compile(futimp + relimp + test_src, "<???>", "exec")
Dtest_zipimport.py10 from test.test_importhooks import ImportHooksBaseTestCase, test_src, test_co
129 files = {"zlib.py": (NOW, test_src)}
140 files = {TESTMOD + ".py": (NOW, test_src)}
148 files = {TESTMOD + ".py": (NOW, test_src),
161 files = {TESTMOD + ".py": (NOW, test_src),
183 files = {TESTMOD + ".py": (NOW, test_src),
314 files = {TESTMOD + ".py": (NOW, test_src)}
319 self.assertEqual(inspect.getsource(module), test_src)
322 files = {TESTMOD + ".py": (NOW, test_src)}
326 pyc = make_pyc(compile(test_src, "<???>", "exec"), NOW)
[all …]