REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.52 KB
Close
//opt/hc_python/lib/python3.12/site-packages/mako/testing/exclusions.py
Text
Base64
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)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
assertions.py
5.04 KB
lrw-r--r--
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
config.py
323 B
lrw-r--r--
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
exclusions.py
1.52 KB
lrw-r--r--
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fixtures.py
2.97 KB
lrw-r--r--
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers.py
1.58 KB
lrw-r--r--
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_config.py
3.48 KB
lrw-r--r--
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
0 B
lrw-r--r--
2025-04-04 08:02:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).