File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,19 @@ bool has_pybind11_internals_static() {
173
173
174
174
TEST_CASE (" Restart the interpreter" ) {
175
175
// Verify pre-restart state.
176
+ fprintf (stdout,
177
+ " \n LOOOK PYTHONPATH %s\n " ,
178
+ py::module_::import (" os" )
179
+ .attr (" environ" )
180
+ .attr (" get" )(" PYTHONPATH" )
181
+ .cast <std::string>()
182
+ .c_str ());
183
+ auto sys_path = py::module_::import (" sys" ).attr (" path" ).attr (" __str__" )().cast <std::string>();
184
+ fprintf (stdout, " \n LOOOK_BEF %s\n " , sys_path.c_str ());
185
+ fflush (stdout);
186
+ py::module_::import (" site" ).attr (" main" )(); // Ensure PYTHONPATH is processed.
187
+ fprintf (stdout, " \n LOOOK_AFT %s\n " , sys_path.c_str ());
188
+ fflush (stdout);
176
189
REQUIRE (py::module_::import (" widget_module" ).attr (" add" )(1 , 2 ).cast <int >() == 3 );
177
190
REQUIRE (has_pybind11_internals_builtin ());
178
191
REQUIRE (has_pybind11_internals_static ());
You can’t perform that action at this time.
0 commit comments