helpers: use grep instead of vim in FileOwner doctest
authorW. Trevor King <wking@tremily.us>
Sun, 11 Nov 2012 15:52:55 +0000 (10:52 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 11 Nov 2012 15:52:55 +0000 (10:52 -0500)
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

index e7a27ab5a5fc0554ba9d8b2bf8b1607aedecefc7..ba8661d2e5e84a48a6705c33994060a6571473bc 100644 (file)
@@ -223,8 +223,8 @@ class FileOwner(object):
        Example usage:
                >>> from gentoolkit.helpers import FileOwner
                >>> findowner = FileOwner()
-               >>> findowner(('/usr/bin/vim',))
-               [(<Package app-editors/vim-7.2.182>, '/usr/bin/vim')]
+               >>> findowner(('/bin/grep',))
+               [(<Package 'sys-apps/grep-2.12'>, '/bin/grep')]
        """
        def __init__(self, is_regex=False, early_out=False, printer_fn=None):
                """Instantiate function.