# Path: mako/ext/beaker_cache.py
# class BeakerCacheImpl(CacheImpl):
#     def __init__(self, cache):
#     def _get_cache(self, **kw):
#     def get_or_create(self, key, creation_function, **kw):
#     def put(self, key, value, **kw):
#     def get(self, key, **kw):
#     def invalidate(self, key, **kw):
# 
# Path: mako/util.py
# def update_wrapper(decorated, fn):
#     decorated.__wrapped__ = fn
#     decorated.__name__ = fn.__name__
#     return decorated


import pytest
    import babel.messages.extract as babel
    import lingua
    import dogpile.cache  # noqa
        import pygments
from mako.ext.beaker_cache import has_beaker
from mako.util import update_wrapper
        from mako import exceptions
    not has_dogpile_cache,
    reason="dogpile.cache is required to run these tests",
)


def _pygments_version():
    try:

        version = pygments.__version__
    except:
        version = "0"
    return version


requires_pygments_14 = pytest.mark.skipif(
    _pygments_version() < "1.4", reason="Requires pygments 1.4 or greater"
)


# def requires_pygments_14(fn):

#     return skip_if(
#         lambda: version < "1.4", "Requires pygments 1.4 or greater"
#     )(fn)


def requires_no_pygments_exceptions(fn):
    def go(*arg, **kw):

        exceptions._install_fallback()

# Path: mako/ext/beaker_cache.py
# class BeakerCacheImpl(CacheImpl):
#     def __init__(self, cache):
#     def _get_cache(self, **kw):
#     def get_or_create(self, key, creation_function, **kw):
#     def put(self, key, value, **kw):
#     def get(self, key, **kw):
#     def invalidate(self, key, **kw):
# 
# Path: mako/util.py
# def update_wrapper(decorated, fn):
#     decorated.__wrapped__ = fn
#     decorated.__name__ = fn.__name__
#     return decorated


# Path: mako/testing/exclusions.py
import pytest
    import babel.messages.extract as babel
    import lingua
    import dogpile.cache  # noqa
        import pygments
from mako.ext.beaker_cache import has_beaker
from mako.util import update_wrapper
        from mako import exceptions

    not has_dogpile_cache,
    reason="dogpile.cache is required to run these tests",
)


def _pygments_version():
    try:

        version = pygments.__version__
    except:
        version = "0"
    return version


requires_pygments_14 = pytest.mark.skipif(
    _pygments_version() < "1.4", reason="Requires pygments 1.4 or greater"
)


# def requires_pygments_14(fn):

#     return skip_if(
#         lambda: version < "1.4", "Requires pygments 1.4 or greater"
#     )(fn)


def requires_no_pygments_exceptions(fn):
    def go(*arg, **kw):

        exceptions._install_fallback()

        try: