Home
last modified time | relevance | path

Searched refs:test_src (Results 1 – 6 of 6) 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 …]
/external/python/cpython3/Lib/test/
Dtest_zipimport_support.py79 test_src = "def foo(): pass\n"
81 init_name = make_script(d, '__init__', test_src)
90 self.assertEqual(inspect.getsource(zip_pkg.foo), test_src)
100 test_src = inspect.getsource(test_doctest)
101 test_src = test_src.replace(
104 test_src = test_src.replace("test.test_doctest",
106 test_src = test_src.replace("test.sample_doctest",
122 test_src)
188 test_src = textwrap.dedent("""\
198 script_name = make_script(d, 'script', test_src)
[all …]
Dtest_zipimport.py25 test_src = """\ variable
31 test_co = compile(test_src, "<???>", "exec")
50 test_pyc = make_pyc(test_co, NOW, len(test_src))
167 files = {"zlib.py": (NOW, test_src)}
178 files = {TESTMOD + ".py": (NOW, test_src)}
186 files = {TESTMOD + ".py": (NOW, test_src),
212 files = {TESTMOD + ".py": (NOW, test_src),
233 files = {TESTMOD + ".py": (NOW, test_src),
586 files = {TESTMOD + ".py": (NOW, test_src)}
591 self.assertEqual(inspect.getsource(module), test_src)
[all …]
/external/google-benchmark/test/
DBUILD40 name = test_src[:-len(".cc")],
42 srcs = [test_src],
43 args = TEST_ARGS + PER_SRC_TEST_ARGS.get(test_src, []),
44 copts = TEST_COPTS + PER_SRC_COPTS.get(test_src, []),
51 … ["@com_google_googletest//:gtest_main"] if (test_src[-len("gtest.cc"):] == "gtest.cc") else []
56 ) for test_src in glob(["*test.cc"], exclude = ["*_assembly_test.cc", "link_main_test.cc"])