We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fa07f2 commit 47b4b4eCopy full SHA for 47b4b4e
src/import.cpp
@@ -17,7 +17,7 @@ object BOOST_PYTHON_DECL import(str name)
17
{
18
// should be 'char const *' but older python versions don't use 'const' yet.
19
char *n = python::extract<char *>(name);
20
- python::handle<> module(python::borrowed(PyImport_AddModule(n)));
+ python::handle<> module(python::borrowed(PyImport_ImportModule(n)));
21
return python::object(module);
22
}
23
test/Jamfile.v2
@@ -150,6 +150,7 @@ bpl-test crossmod_opaque
150
/boost/python//boost_python ]
151
[ bpl-test
152
map_indexing_suite : map_indexing_suite.py map_indexing_suite_ext ]
153
+[ py-run import_.cpp ]
154
155
# if $(TEST_BIENSTMAN_NON_BUGS)
156
# {
0 commit comments