Searched refs:test_src (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_zipimport_support.py | 77 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 …]
|
D | test_importhooks.py | 8 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")
|
D | test_zipimport.py | 10 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/ |
D | test_zipimport_support.py | 79 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) 186 test_src = textwrap.dedent("""\ 196 script_name = make_script(d, 'script', test_src) [all …]
|
D | test_zipimport.py | 26 test_src = """\ variable 32 test_co = compile(test_src, "<???>", "exec") 51 test_pyc = make_pyc(test_co, NOW, len(test_src)) 171 files = {"zlib.py": (NOW, test_src)} 182 files = {TESTMOD + ".py": (NOW, test_src)} 190 files = {TESTMOD + ".py": (NOW, test_src), 231 files = {TESTMOD + ".py": (NOW, test_src), 252 files = {TESTMOD + ".py": (NOW, test_src), 577 files = {TESTMOD + ".py": (NOW, test_src)} 582 self.assertEqual(inspect.getsource(module), test_src) [all …]
|
/external/google-benchmark/test/ |
D | BUILD | 41 name = test_src[:-len(".cc")], 43 srcs = [test_src], 44 args = TEST_ARGS + PER_SRC_TEST_ARGS.get(test_src, []), 45 copts = TEST_COPTS + PER_SRC_COPTS.get(test_src, []), 52 … ["@com_google_googletest//:gtest_main"] if (test_src[-len("gtest.cc"):] == "gtest.cc") else [] 58 for test_src in glob(
|
/external/rust/crates/syn/tests/repo/ |
D | mod.rs | 89 let test_src = Path::new("tests/rust"); in clone_rust() localVariable 91 if !test_src.join(exclude).exists() { in clone_rust()
|