From 7ef7b449a0ea2b5041a22b5fde23afdfd9a2a0d0 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 20 Oct 2016 00:03:39 +0000 Subject: Added a decorator for the macOS version and switched over testcases that used platform.release llvm-svn: 284674 --- lldb/packages/Python/lldbsuite/test/lang/c/modules/TestCModules.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/lang/c/modules') diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/modules/TestCModules.py b/lldb/packages/Python/lldbsuite/test/lang/c/modules/TestCModules.py index 850b760577b..af6c3a722e4 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/modules/TestCModules.py +++ b/lldb/packages/Python/lldbsuite/test/lang/c/modules/TestCModules.py @@ -25,10 +25,8 @@ class CModulesTestCase(TestBase): @expectedFailureAll( oslist=["windows"], bugnumber="llvm.org/pr24489: Name lookup not working correctly on Windows") + @skipIf(macos_version=["<", "10.12"]) def test_expr(self): - if platform.system() == "Darwin" and platform.release() < StrictVersion('12.0.0'): - self.skipTest() - self.build() exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) -- cgit v1.2.3