Remove skipIfLinuxClang decorator

it isn't used in the code anymore, and we're trying to cut down on the decorators.

llvm-svn: 258049
This commit is contained in:
Pavel Labath 2016-01-18 15:01:14 +00:00
parent 4da73573ab
commit bace94eda8
1 changed files with 0 additions and 18 deletions

View File

@ -1056,24 +1056,6 @@ def skipUnlessPlatform(oslist):
return unittest2.skipUnless(getPlatform() in oslist,
"requires on of %s" % (", ".join(oslist)))
def skipIfLinuxClang(func):
"""Decorate the item to skip tests that should be skipped if building on
Linux with clang.
"""
if isinstance(func, type) and issubclass(func, unittest2.TestCase):
raise Exception("@skipIfLinuxClang can only be used to decorate a test method")
@wraps(func)
def wrapper(*args, **kwargs):
from unittest2 import case
self = args[0]
compiler = self.getCompiler()
platform = self.getPlatform()
if "clang" in compiler and platform == "linux":
self.skipTest("skipping because Clang is used on Linux")
else:
func(*args, **kwargs)
return wrapper
# provide a function to skip on defined oslist, compiler version, and archs
# if none is specified for any argument, that argument won't be checked and thus means for all
# for example,