Mercurial > hgsubversion
comparison tests/test_util.py @ 487:6b481331c355
test_util: fix up line endings
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 12 Aug 2009 16:54:21 -0400 |
parents | 5607e81ba616 |
children | 50d77547c218 |
comparison
equal
deleted
inserted
replaced
486:5607e81ba616 | 487:6b481331c355 |
---|---|
40 raise ctypes.WinError() | 40 raise ctypes.WinError() |
41 return args | 41 return args |
42 | 42 |
43 def WINAPI(returns, func, *params): | 43 def WINAPI(returns, func, *params): |
44 assert len(params) % 2 == 0 | 44 assert len(params) % 2 == 0 |
45 | 45 |
46 func.argtypes = tuple(params[0::2]) | 46 func.argtypes = tuple(params[0::2]) |
47 func.resvalue = returns | 47 func.resvalue = returns |
48 func.errcheck = win_status_check | 48 func.errcheck = win_status_check |
49 | 49 |
50 return func | 50 return func |