summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-30 16:56:41 (GMT)
committerGitHub <noreply@github.com>2021-09-30 16:56:41 (GMT)
commit7873884d4730d7e637a968011b8958bd79fd3398 (patch)
treeb9d4ae24dcb6bb037558299e05726af0611e35de /Python
parent80285ecc8deaa2b0e7351bf4be863d1a0ad3c188 (diff)
downloadcpython-7873884d4730d7e637a968011b8958bd79fd3398.zip
cpython-7873884d4730d7e637a968011b8958bd79fd3398.tar.gz
cpython-7873884d4730d7e637a968011b8958bd79fd3398.tar.bz2
[3.10] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654) (GH-28657)
* Work correctly if an additional fresh module imports other additional fresh module which imports a blocked module. * Raises ImportError if the specified module cannot be imported while all additional fresh modules are successfully imported. * Support blocking packages. * Always restore the import state of fresh and blocked modules and their submodules. * Fix test_decimal and test_xml_etree which depended on an undesired side effect of import_fresh_module(). (cherry picked from commit ec4d917a6a68824f1895f75d113add9410283da7)
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions