We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29f4940 commit 198c9c2Copy full SHA for 198c9c2
tests/test_embed/test_interpreter.cpp
@@ -173,6 +173,18 @@ bool has_pybind11_internals_static() {
173
174
TEST_CASE("Restart the interpreter") {
175
// Verify pre-restart state.
176
+ fprintf(stdout,
177
+ "\nLOOOK PYTHONPATH %s\n",
178
+ py::module_::import("os")
179
+ .attr("environ")
180
+ .attr("get")("PYTHONPATH")
181
+ .attr("__str__")()
182
+ .cast<std::string>()
183
+ .c_str());
184
+ fflush(stdout);
185
+ auto sys_path = py::module_::import("sys").attr("path").attr("__str__")().cast<std::string>();
186
+ fprintf(stdout, "\nLOOOK sys.path %s\n", sys_path.c_str());
187
188
REQUIRE(py::module_::import("widget_module").attr("add")(1, 2).cast<int>() == 3);
189
REQUIRE(has_pybind11_internals_builtin());
190
REQUIRE(has_pybind11_internals_static());
0 commit comments