[LLDB][TestSuite] Improve skipIfWindowsAndNonEnglish in decorators.py

Differential Revision: https://reviews.llvm.org/D89716
This commit is contained in:
Alexandre Ganea 2020-10-19 14:27:41 -04:00
parent 629d1d117a
commit 89b72209ad
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ def skipIfWindows(func):
def skipIfWindowsAndNonEnglish(func):
"""Decorate the item to skip tests that should be skipped on non-English locales on Windows."""
def is_Windows_NonEnglish(self):
if lldbplatformutil.getPlatform() != "windows":
if sys.platform != "win32":
return None
kernel = ctypes.windll.kernel32
if locale.windows_locale[ kernel.GetUserDefaultUILanguage() ] == "en_US":