Mercurial > hgsubversion
changeset 715:c33293a34752
requiresoption: clean up docstring
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 02 Oct 2010 16:44:17 -0500 |
parents | 7e55483a56ca |
children | 38ebf7714cdf |
files | tests/test_util.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -89,12 +89,7 @@ FIXTURES = os.path.join(os.path.abspath( 'fixtures') def requiresoption(option): - ''' - Decorator for test functions which require clone to accept the given option. - If the option isn't available, the test is skipped. - - Takes one argument: the required option. - ''' + '''Skip a test if commands.clone does not take the specified option.''' def decorator(fn): for entry in cmdutil.findcmd('clone', commands.table)[1][1]: if entry[1] == option: