Message186798
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))
? |
|
Date |
User |
Action |
Args |
2013-04-13 18:55:10 | pitrou | set | recipients:
+ pitrou, brett.cannon, ezio.melotti, zach.ware |
2013-04-13 18:55:10 | pitrou | set | messageid: <1365879310.78.0.395676176299.issue17689@psf.upfronthosting.co.za> |
2013-04-13 18:55:10 | pitrou | link | issue17689 messages |
2013-04-13 18:55:10 | pitrou | create | |
|