From: W. Trevor King Date: Sun, 11 Nov 2012 15:52:55 +0000 (-0500) Subject: helpers: use grep instead of vim in FileOwner doctest X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1efe0ac51a0790d302d9d9c9151015ac1e199827;p=gentoolkit.git helpers: use grep instead of vim in FileOwner doctest grep is in the base profile so the tester is more likely to have it installed. The version may be off, but a test result with a different grep version is still obviously working. An empty result from an uninstalled file is not so comforting. --- diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py index e7a27ab..ba8661d 100644 --- a/pym/gentoolkit/helpers.py +++ b/pym/gentoolkit/helpers.py @@ -223,8 +223,8 @@ class FileOwner(object): Example usage: >>> from gentoolkit.helpers import FileOwner >>> findowner = FileOwner() - >>> findowner(('/usr/bin/vim',)) - [(, '/usr/bin/vim')] + >>> findowner(('/bin/grep',)) + [(, '/bin/grep')] """ def __init__(self, is_regex=False, early_out=False, printer_fn=None): """Instantiate function.