Lines Matching refs:code
340 code = fp.read()
341 out, err = self.run_embedded_interpreter("test_repeated_init_exec", code)
353 # Do these imports outside of the code string to avoid using
354 # importlib too much from within the code string, so that
361 code = textwrap.dedent(f"""\
364 code = func.__code__
368 if set(code._co_code_adaptive[:2]) != set([{resume}, 0]):
375 if set(code._co_code_adaptive[:2]) != set([{resume_quick}, 0]):
381 out, err = run("test_repeated_init_exec", code)
386 code = "print('\\N{digit nine}')"
387 out, err = self.run_embedded_interpreter("test_repeated_init_exec", code)
591 code = textwrap.dedent('''
606 args = [sys.executable, '-S', '-c', code]
1106 code = ('import _testinternalcapi, json; '
1110 'orig_argv': ['python3', '-c', code, 'arg2'],
1112 'run_command': code + '\n',
1118 code = ('import _testinternalcapi, json; '
1123 '-c', code,
1126 'run_command': code + '\n',
1132 stderr="Run Python code before _Py_InitializeMain")
1345 # The code above is taken from test_init_setpythonhome()