Add mock for better protection of unit tests launch.

change behavior of main function to always end with exit.
This commit is contained in:
Grzegorz Bokota
2019-11-24 12:17:08 +01:00
parent d2700bc3b4
commit c966c6d098
2 changed files with 31 additions and 10 deletions
+2 -1
View File
@@ -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():