The skipOnLinux decorator wasn't calling the test method correctly (no need to pass in the "self") resulting

in errors on MacOS X for the tests so decorated.

llvm-svn: 168662
This commit is contained in:
Jim Ingham 2012-11-27 01:21:28 +00:00
parent ac997e963f
commit 9732e08a4d
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ def skipOnLinux(func):
if "linux" in platform: if "linux" in platform:
self.skipTest("skip on linux") self.skipTest("skip on linux")
else: else:
func(self, *args, **kwargs) func(*args, **kwargs)
return wrapper return wrapper
class Base(unittest2.TestCase): class Base(unittest2.TestCase):