bpo-40275: lazy import module in test.supports' decorators by shihai1991 · Pull Request #20131 · python/cpython
arturoescaip pushed a commit to arturoescaip/cpython that referenced this pull request
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()".