-
- Downloads
bpo-40275: More lazy imports in test.support (GH-20131)
Make the the following imports lazy in test.support: * bz2 * gzip * lzma * resource * zlib The following test.support decorators now need to be called with parenthesis: * @support.requires_bz2 * @support.requires_gzip * @support.requires_lzma * @support.requires_zlib For example, "@requires_zlib" becomes "@requires_zlib()".
Showing
- Lib/test/support/__init__.py 39 additions, 35 deletionsLib/test/support/__init__.py
- Lib/test/test_importlib/test_zip.py 2 additions, 2 deletionsLib/test/test_importlib/test_zip.py
- Lib/test/test_logging.py 1 addition, 1 deletionLib/test/test_logging.py
- Lib/test/test_shutil.py 12 additions, 12 deletionsLib/test/test_shutil.py
- Lib/test/test_tarfile.py 3 additions, 3 deletionsLib/test/test_tarfile.py
- Lib/test/test_venv.py 1 addition, 1 deletionLib/test/test_venv.py
- Lib/test/test_zipapp.py 1 addition, 1 deletionLib/test/test_zipapp.py
- Lib/test/test_zipfile.py 20 additions, 20 deletionsLib/test/test_zipfile.py
- Lib/test/test_zipfile64.py 1 addition, 1 deletionLib/test/test_zipfile64.py
- Lib/test/test_zipimport.py 1 addition, 1 deletionLib/test/test_zipimport.py
Loading
Please register or sign in to comment