diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-08-01 16:18:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-01 16:18:24 -0700 |
| commit | 4d1ae58d9e1d679cd0f35ce935579df221b14882 (patch) | |
| tree | 062cb99bd36fea59d03e2e177cc85fbb183c40b3 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
| parent | 33abf05af4f8f7f80856bd018d117c98f8807e87 (diff) | |
[lldb] Reimplment PyRun_SimpleString using the Python stable C API (#151777)
Reimplment `PyRun_SimpleString` using the Python stable C API and the
`RunString` helper.
Part of https://github.com/llvm/llvm-project/issues/151617
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
| -rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index fbb005b3f0fd..068860ebc20f 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -22,7 +22,7 @@ void PythonTestSuite::SetUp() { // test suite. Py_InitializeEx(0); m_gil_state = PyGILState_Ensure(); - PyRun_SimpleString("import sys"); + python::RunSimpleString("import sys"); } void PythonTestSuite::TearDown() { |
