check: Fix the check for platform formatting

This commit is contained in:
Richo Healey 2015-03-24 17:14:45 -07:00
parent 93fc804b85
commit e4f9ce8cbf

View File

@ -29,7 +29,7 @@ def only_on(platforms):
def decorator(func):
@functools.wraps(func)
def inner():
if sys.platform in platforms:
if any(map(lambda x: sys.platform.startswith(x), platforms)):
func()
return inner
return decorator