gh-148110: Resolve lazy import filter names for relative imports (#148111)

This commit is contained in:
Pablo Galindo Salgado 2026-04-06 22:29:02 +01:00 committed by GitHub
parent a0c57a8d17
commit ca960b6f38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 197 additions and 8 deletions

View file

@ -4523,7 +4523,7 @@ _PyImport_LazyImportModuleLevelObject(PyThreadState *tstate,
assert(!PyErr_Occurred());
fromlist = Py_NewRef(Py_None);
}
PyObject *args[] = {modname, name, fromlist};
PyObject *args[] = {modname, abs_name, fromlist};
PyObject *res = PyObject_Vectorcall(filter, args, 3, NULL);
Py_DECREF(modname);