Index: test/lldbtest.py =================================================================== --- test/lldbtest.py +++ test/lldbtest.py @@ -42,6 +42,7 @@ import types import unittest2 import lldb +import functools from _pyio import __metaclass__ # See also dotest.parseOptionsAndInitTestdirs(), where the environment variables @@ -565,9 +566,13 @@ # to XFAIL a specific clang versions, try this # @expectedFailureClang('bugnumber', ['<=', '3.4']) def expectedFailureClang(bugnumber=None, compiler_version=None): + if bugnumber is None: + return functools.partial(expectedFailureClang,compiler_version=compiler_version) if bugnumber: return expectedFailureCompiler('clang', compiler_version, bugnumber) def expectedFailureGcc(bugnumber=None, compiler_version=None): + if bugnumber is None: + return functools.partial(expectedFailureGcc,compiler_version=compiler_version) if bugnumber: return expectedFailureCompiler('gcc', compiler_version, bugnumber) def expectedFailureIcc(bugnumber=None): @@ -590,18 +595,28 @@ if bugnumber: return expectedFailure(fn, bugnumber) def expectedFailureDarwin(bugnumber=None, compilers=None): + if bugnumber is None: + return functools.partial(expectedFailureDarwin,compilers=compilers) if bugnumber: return expectedFailureOS('darwin', bugnumber, compilers) def expectedFailureFreeBSD(bugnumber=None, compilers=None): + if bugnumber is None: + return functools.partial(expectedFailureFreeBSD,compilers=compilers) if bugnumber: return expectedFailureOS('freebsd', bugnumber, compilers) def expectedFailureLinux(bugnumber=None, compilers=None): + if bugnumber is None: + return functools.partial(expectedFailureLinux,compilers=compilers) if bugnumber: return expectedFailureOS('linux', bugnumber, compilers) def expectedFailureWindows(bugnumber=None, compilers=None): + if bugnumber is None: + return functools.partial(expectedFailureWindows,compilers=compilers) if bugnumber: return expectedFailureOS('win32', bugnumber, compilers) def expectedFailureLLGS(bugnumber=None, compilers=None): + if bugnumber is None: + return functools.partial(expectedFailureLLGS, compilers=compilers) def fn(self): # llgs local is only an option on Linux systems if 'linux' not in sys.platform: