blob: ad6724d5f078b56be838972395cf0fc2b2d3e986 [file] [log] [blame]
importlib.find_spec() raises ModuleNotFoundError instead of AttributeError
if the specified parent module is not a package (i.e. lacks a __path__
attribute).