summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import/data/unwritable
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39336: Allow packages to not let their child modules be set on them (#18006)Dino Viehland2020-01-232-0/+12
* bpo-39336: Allow setattr to fail on modules which aren't assignable When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail. This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored.