From 1efe0ac51a0790d302d9d9c9151015ac1e199827 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 11 Nov 2012 10:52:55 -0500 Subject: [PATCH] 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. --- pym/gentoolkit/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.26.2