comparison tests/test_util.py @ 1080:661f4065bfbf

test_util: fix missing message in SkipTest raise
author Augie Fackler <raf@durin42.com>
date Fri, 09 Aug 2013 19:41:25 -0500
parents 1afd308b8f46
children c8d0f5983571
comparison
equal deleted inserted replaced
1079:c1077b223648 1080:661f4065bfbf
163 def requiresreplay(method): 163 def requiresreplay(method):
164 '''Skip a test in stupid mode.''' 164 '''Skip a test in stupid mode.'''
165 def test(self, *args, **kwargs): 165 def test(self, *args, **kwargs):
166 if self.stupid: 166 if self.stupid:
167 if SkipTest: 167 if SkipTest:
168 raise SkipTest(message) 168 raise SkipTest("test requires replay mode")
169 else: 169 else:
170 return method(self, *args, **kwargs) 170 return method(self, *args, **kwargs)
171 171
172 test.__name__ = method.__name__ 172 test.__name__ = method.__name__
173 return test 173 return test