$62 GRAYBYTE WORDPRESS FILE MANAGER $42

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/alembic/testing/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/alembic/testing//warnings.py
# testing/warnings.py
# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php


import warnings

from sqlalchemy import exc as sa_exc

from ..util import sqla_14


def setup_filters():
    """Set global warning behavior for the test suite."""

    warnings.resetwarnings()

    warnings.filterwarnings("error", category=sa_exc.SADeprecationWarning)
    warnings.filterwarnings("error", category=sa_exc.SAWarning)

    # some selected deprecations...
    warnings.filterwarnings("error", category=DeprecationWarning)
    if not sqla_14:
        # 1.3 uses pkg_resources in PluginLoader
        warnings.filterwarnings(
            "ignore",
            "pkg_resources is deprecated as an API",
            DeprecationWarning,
        )
    try:
        import pytest
    except ImportError:
        pass
    else:
        warnings.filterwarnings(
            "once", category=pytest.PytestDeprecationWarning
        )

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.24 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
plugin
--
14 Aug 2025 9.24 PM
root / root
0755
suite
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
1.132 KB
17 Apr 2025 8.10 PM
root / root
0644
assertions.py
4.9 KB
17 Apr 2025 8.10 PM
root / root
0644
env.py
10.505 KB
17 Apr 2025 8.10 PM
root / root
0644
fixtures.py
8.9 KB
17 Apr 2025 8.10 PM
root / root
0644
requirements.py
4.816 KB
17 Apr 2025 8.10 PM
root / root
0644
schemacompare.py
4.429 KB
17 Apr 2025 8.10 PM
root / root
0644
util.py
3.271 KB
17 Apr 2025 8.10 PM
root / root
0644
warnings.py
1.053 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF