[LLDB][TestSuite] Improve skipIfWindowsAndNonEnglish in decorators.py
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 19 Oct 2020 18:27:41 +0000 (14:27 -0400)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 19 Oct 2020 18:28:08 +0000 (14:28 -0400)
Differential Revision: https://reviews.llvm.org/D89716

lldb/packages/Python/lldbsuite/test/decorators.py

index bb4a459..1775c07 100644 (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":