1
0
Fork 0

Fixed OS detection such that OSX doesn't take over the world (#8248)

This commit is contained in:
Mikkel Jeppesen 2020-02-26 10:12:13 +01:00 committed by GitHub
parent d52cd8886c
commit 4667bc554e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,7 +170,7 @@ def doctor(cli):
# Determine our OS and run platform specific tests
OS = platform.platform().lower() # noqa (N806), uppercase name is ok in this instance
if 'darwin' or 'macos' in OS:
if 'darwin' in OS or 'macos' in OS:
if not os_test_macos():
ok = False
elif 'linux' in OS: