summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_datetime.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-30 16:57:46 (GMT)
committerGitHub <noreply@github.com>2021-09-30 16:57:46 (GMT)
commitf7e99c98130a705f88348dde60adb98d5bfd8b98 (patch)
tree7a3df97bb8ece339c346b7e9ffef7a0d1aaec25d /Lib/test/test_datetime.py
parent9626ac8b7421aa5fc04a30359521d24f40105141 (diff)
downloadcpython-f7e99c98130a705f88348dde60adb98d5bfd8b98.zip
cpython-f7e99c98130a705f88348dde60adb98d5bfd8b98.tar.gz
cpython-f7e99c98130a705f88348dde60adb98d5bfd8b98.tar.bz2
[3.9] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654) (GH-28658)
* 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 'Lib/test/test_datetime.py')
0 files changed, 0 insertions, 0 deletions