check: Fix the check for platform formatting
This commit is contained in:
parent
93fc804b85
commit
e4f9ce8cbf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user