def skip_if_32bit(func):
 @wraps(func)
 def run_test(*args, **kwargs):
  bits = (8 * struct.calcsize('P'))
  if (bits == 32):
   raise SkipTest('Test skipped on 32bit platforms.')
  else:
   return func(*args, **kwargs)
 return run_test

def skip_if_32bit ( func ) : @ wraps ( func ) def run_test ( * args , ** kwargs ) : bits = ( 8 * struct . calcsize ( 'P' ) ) if ( bits == 32 ) : raise SkipTest ( 'Test skipped on 32bit platforms.' ) else : return func ( * args , ** kwargs ) return run_test
test decorator that skips tests on 32bit platforms .