Lines Matching refs:globals

603   PythonDictionary globals(PyInitialValue::Empty);  in TEST_F()  local
605 llvm::Error error = globals.SetItem("__builtins__", builtins); in TEST_F()
609 PyObject *o = PyRun_String("lambda x : x", Py_eval_input, globals.get(), in TEST_F()
610 globals.get()); in TEST_F()
619 PyObject *o = PyRun_String("lambda x,y=0: x", Py_eval_input, globals.get(), in TEST_F()
620 globals.get()); in TEST_F()
630 globals.get(), globals.get()); in TEST_F()
639 PyObject *o = PyRun_String("lambda x,y,*a: x", Py_eval_input, globals.get(), in TEST_F()
640 globals.get()); in TEST_F()
651 globals.get(), globals.get()); in TEST_F()
690 PyRun_String(script, Py_file_input, globals.get(), globals.get()); in TEST_F()
694 auto bar_bound = As<PythonCallable>(globals.GetItem("bar_bound")); in TEST_F()
700 auto bar_unbound = As<PythonCallable>(globals.GetItem("bar_unbound")); in TEST_F()
706 auto bar_class = As<PythonCallable>(globals.GetItem("bar_class")); in TEST_F()
712 auto bar_static = As<PythonCallable>(globals.GetItem("bar_static")); in TEST_F()
718 auto obj = As<PythonCallable>(globals.GetItem("obj")); in TEST_F()
724 auto oldstyle = As<PythonCallable>(globals.GetItem("OldStyle")); in TEST_F()
730 auto newstyle = As<PythonCallable>(globals.GetItem("NewStyle")); in TEST_F()
811 PythonDictionary globals(PyInitialValue::Empty); in TEST_F() local
813 auto x = As<long long>(runStringOneLine("40 + 2", globals, globals)); in TEST_F()
817 Expected<PythonObject> r = runStringOneLine("n = 42", globals, globals); in TEST_F()
819 auto y = As<long long>(globals.GetItem("n")); in TEST_F()
829 r = runStringMultiLine(script, globals, globals); in TEST_F()
831 auto g = As<std::string>(globals.GetItem("g")); in TEST_F()