cpython/Lib/test/test_import/data
Dino Viehland 9b6fec4651
bpo-39336: Allow packages to not let their child modules be set on them (#18006)
* 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.
2020-01-22 16:42:38 -08:00
..
circular_imports bpo-20490: Improve circular import error message (GH-15308) 2019-09-09 08:17:50 -07:00
package
package2 bpo-30876: Relative import from unloaded package now reimports the package (#2639) 2017-07-12 06:50:03 +03:00
unwritable bpo-39336: Allow packages to not let their child modules be set on them (#18006) 2020-01-22 16:42:38 -08:00