diff --git a/Makefile.pre.in b/Makefile.pre.in index c4c2914cdf3..691a4cb2931 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -2654,6 +2654,8 @@ TESTSUBDIRS= idlelib/idle_test \ test/test_import/data/package3 \ test/test_import/data/package4 \ test/test_import/data/unwritable \ + test/test_import/data/lazy_imports \ + test/test_import/data/lazy_imports/pkg \ test/test_importlib \ test/test_importlib/builtin \ test/test_importlib/extension \ diff --git a/Python/ceval.c b/Python/ceval.c index 32a052ddba5..9a6e84eb268 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3476,7 +3476,7 @@ _PyEval_ImportNameWithImport(PyThreadState *tstate, PyObject *import_func, PyObj return res; } -int +static int check_lazy_import_comatibility(PyThreadState *tstate, PyObject *globals, PyObject *name, PyObject *level) { diff --git a/Python/import.c b/Python/import.c index 9aa43392f1f..97819f6ae2f 100644 --- a/Python/import.c +++ b/Python/import.c @@ -4052,7 +4052,7 @@ import_find_and_load(PyThreadState *tstate, PyObject *abs_name) #undef accumulated } -PyObject * +static PyObject * get_abs_name(PyThreadState *tstate, PyObject *name, PyObject *globals, int level) { if (level > 0) {