dependencies: update Dependencies doctest to use portage-9999
authorW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 02:32:27 +0000 (21:32 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 02:32:27 +0000 (21:32 -0500)
pym/gentoolkit/dependencies.py

index 84e3672ec51cdfaf123d882f945c3405ba1a215f..726d546173e41a7fc8fd6a9f1eecd01ff7b14d2f 100644 (file)
@@ -31,12 +31,14 @@ class Dependencies(Query):
 
        Example usage:
                >>> from gentoolkit.dependencies import Dependencies
-               >>> portage = Dependencies('sys-apps/portage-2.1.6.13')
+               >>> portage = Dependencies('sys-apps/portage-9999')
                >>> portage
-               <Dependencies 'sys-apps/portage-2.1.6.13'>
+               <Dependencies 'sys-apps/portage-9999'>
                >>> # All methods return gentoolkit.atom.Atom instances
                ... portage.get_depend()
-               [<Atom '>=dev-lang/python-2.5'>, <Atom '<dev-lang/python-3.0'>, ...]
+               ... # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
+               [<Atom 'python3? =dev-lang/python-3*'>,
+                <Atom '!python3? >=dev-lang/python-2.7'>, ...]
 
        """
        def __init__(self, query, parser=None):