Add mock for better protection of unit tests launch.
change behavior of main function to always end with exit.
This commit is contained in:
@@ -179,7 +179,8 @@ def main():
|
||||
elif platform == 'macos':
|
||||
cibuildwheel.macos.build(**build_options)
|
||||
else:
|
||||
raise Exception('Unsupported platform: {}'.format(platform))
|
||||
print('cibuildwheel: Unsupported platform: {}'.format(platform), file=sys.stderr)
|
||||
exit(2)
|
||||
|
||||
|
||||
def detect_obsolete_options():
|
||||
|
||||
Reference in New Issue
Block a user