(exe=None, modules=None, disable_viewers=None)
return depends_on_deco
Adds metadata about the depenencies which need to be met for doctesting
    the docstrings of the decorated objects.
Adds metadata about the depenencies which need to be met for doctesting
    the docstrings of the decorated objects.
Adds metadata about the depenencies which need to be met for doctesting the docstrings of the decorated objects .
def doctest_depends_on(exe=None, modules=None, disable_viewers=None):
    """Adds metadata about the depenencies which need to be met for doctesting
    the docstrings of the decorated objects."""
    pyglet = False
    if modules is not None and 'pyglet' in modules:
        pyglet = True

    def depends_on_deco(fn):
        fn._doctest_depends_on = dict(exe=exe, modules=modules,
                                      disable_viewers=disable_viewers,
                                      pyglet=pyglet)

        # once we drop py2.5 support and use class decorators this evaluates
        # to True
        if inspect.isclass(fn):
            fn._doctest_depdends_on = no_attrs_in_subclass(fn, fn._doctest_depends_on)
        return fn
    return depends_on_deco
def doctest_depends_on ( exe = None , modules = None , disable_viewers = None ) : pyglet = False if modules is not None and 'pyglet' in modules : pyglet = True def depends_on_deco ( fn ) : fn . _doctest_depends_on = dict ( exe = exe , modules = modules , disable_viewers = disable_viewers , pyglet = pyglet ) # once we drop py2.5 support and use class decorators this evaluates # to True if inspect . isclass ( fn ) : fn . _doctest_depdends_on = no_attrs_in_subclass ( fn , fn . _doctest_depends_on ) return fn return depends_on_deco