Update exception to match decorator name

llvm-svn: 185891
This commit is contained in:
Ed Maste 2013-07-09 00:24:52 +00:00
parent 215a77585d
commit a7f13f0510
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ def skipIfLinux(func):
def skipIfDarwin(func):
"""Decorate the item to skip tests that should be skipped on Darwin."""
if isinstance(func, type) and issubclass(func, unittest2.TestCase):
raise Exception("@skipIfLinux can only be used to decorate a test method")
raise Exception("@skipIfDarwin can only be used to decorate a test method")
@wraps(func)
def wrapper(*args, **kwargs):
from unittest2 import case