Lines Matching refs:run_name
129 run_name = expected_ns["__name__"]
131 saved_mod = sys.modules.get(run_name, sentinel)
136 self.assertIs(sys.modules.get(run_name, sentinel), saved_mod)
144 self.assertIs(sys.modules.get(run_name, sentinel), saved_mod)
393 def _check_relative_imports(self, depth, run_name=None): argument
401 if run_name is None:
404 expected_name = run_name
409 d1 = run_module(mod_name, run_name=run_name) # Read from source
423 d2 = run_module(mod_name, run_name=run_name) # Read from bytecode
538 run_name = "And now for something completely different"
544 "__name__": run_name,
551 return run_module(mod_name, init_globals, run_name)
635 run_name = "prove.issue15230.is.fixed"
637 return run_path(script_name, init_globals, run_name)
639 mod_spec = importlib.util.spec_from_file_location(run_name,
644 expected_ns["__name__"] = run_name
645 expected_ns["__package__"] = run_name.rpartition(".")[0]