This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brett.cannon, ezio.melotti, pitrou, zach.ware
Date 2013-04-13.18:55:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365879310.78.0.395676176299.issue17689@psf.upfronthosting.co.za>
In-reply-to
Content
Wouldn't it be simpler to write (untested):

def skipUnlessCompressionModule(name):
    """
    Skip if the specified compression module is not available.  Must e a
    string, currently any of 'gzip', 'bz2', or 'lzma'.
    """
    return unittest.skipUnless(globals()[name],
                               '{} not available'.format(name))

?
History
Date User Action Args
2013-04-13 18:55:10pitrousetrecipients: + pitrou, brett.cannon, ezio.melotti, zach.ware
2013-04-13 18:55:10pitrousetmessageid: <1365879310.78.0.395676176299.issue17689@psf.upfronthosting.co.za>
2013-04-13 18:55:10pitroulinkissue17689 messages
2013-04-13 18:55:10pitroucreate