GRAYBYTE WORDPRESS FILE MANAGER3106

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/mako/testing/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/mako/testing//exclusions.py
import pytest

from mako.ext.beaker_cache import has_beaker
from mako.util import update_wrapper


try:
    import babel.messages.extract as babel
except ImportError:
    babel = None


try:
    import lingua
except ImportError:
    lingua = None


try:
    import dogpile.cache  # noqa
except ImportError:
    has_dogpile_cache = False
else:
    has_dogpile_cache = True


requires_beaker = pytest.mark.skipif(
    not has_beaker, reason="Beaker is required for these tests."
)


requires_babel = pytest.mark.skipif(
    babel is None, reason="babel not installed: skipping babelplugin test"
)


requires_lingua = pytest.mark.skipif(
    lingua is None, reason="lingua not installed: skipping linguaplugin test"
)


requires_dogpile_cache = pytest.mark.skipif(
    not has_dogpile_cache,
    reason="dogpile.cache is required to run these tests",
)


def _pygments_version():
    try:
        import pygments

        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):
        from mako import exceptions

        exceptions._install_fallback()
        try:
            return fn(*arg, **kw)
        finally:
            exceptions._install_highlighting()

    return update_wrapper(go, fn)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
April 04 2025 08:00:26
root / root
0755
__pycache__
--
April 04 2025 08:00:26
root / root
0755
__init__.py
0 KB
April 04 2025 08:00:26
root / root
0644
_config.py
3.482 KB
April 04 2025 08:00:26
root / root
0644
assertions.py
5.04 KB
April 04 2025 08:00:26
root / root
0644
config.py
0.315 KB
April 04 2025 08:00:26
root / root
0644
exclusions.py
1.517 KB
April 04 2025 08:00:26
root / root
0644
fixtures.py
2.973 KB
April 04 2025 08:00:26
root / root
0644
helpers.py
1.585 KB
April 04 2025 08:00:26
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF