diff --git a/src/PYTHON/python_impl.cpp b/src/PYTHON/python_impl.cpp index cacf1ca237..9177381a35 100644 --- a/src/PYTHON/python_impl.cpp +++ b/src/PYTHON/python_impl.cpp @@ -139,7 +139,7 @@ void PythonImpl::command(int narg, char **arg) if ((narg > 1) && (strcmp(arg[0], "source") == 0)) { int err = -1; - if ((narg > 2) && (strcmp(arg[1], "inline") == 0)) { + if ((narg > 2) && (strcmp(arg[1], "here") == 0)) { err = execute_string(arg[2]); } else { if (platform::file_is_readable(arg[1])) diff --git a/unittest/python/test_python_package.cpp b/unittest/python/test_python_package.cpp index 8b4f998bfc..f998ebbcd8 100644 --- a/unittest/python/test_python_package.cpp +++ b/unittest/python/test_python_package.cpp @@ -286,7 +286,7 @@ TEST_F(PythonPackageTest, RunSourceInline) { // execute inline python script auto output = CAPTURE_OUTPUT([&] { - command("python source inline \"\"\"\n" + command("python source here \"\"\"\n" "from __future__ import print_function\n" "print(2+2)\n" "\"\"\"");