Skip to content

Commit e4f9ce8

Browse files
committed
check: Fix the check for platform formatting
1 parent 93fc804 commit e4f9ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/check-sanitycheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def only_on(platforms):
2929
def decorator(func):
3030
@functools.wraps(func)
3131
def inner():
32-
if sys.platform in platforms:
32+
if any(map(lambda x: sys.platform.startswith(x), platforms)):
3333
func()
3434
return inner
3535
return decorator

0 commit comments

Comments
 (0)