$71 GRAYBYTE WORDPRESS FILE MANAGER $61

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/alt/python37/lib64/python3.7/site-packages/sqlalchemy/testing/

HOME
Current File : /opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/testing//warnings.py
# testing/warnings.py
# Copyright (C) 2005-2019 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

from __future__ import absolute_import

import warnings

from . import assertions
from .. import exc as sa_exc


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

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

    # some selected deprecations...
    warnings.filterwarnings("error", category=DeprecationWarning)
    warnings.filterwarnings(
        "ignore", category=DeprecationWarning, message=".*StopIteration"
    )
    warnings.filterwarnings(
        "ignore", category=DeprecationWarning, message=".*inspect.getargspec"
    )


def assert_warnings(fn, warning_msgs, regex=False):
    """Assert that each of the given warnings are emitted by fn.

    Deprecated.  Please use assertions.expect_warnings().

    """

    with assertions._expect_warnings(
        sa_exc.SAWarning, warning_msgs, regex=regex
    ):
        return fn()

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 6.48 AM
root / 996
0755
__pycache__
--
31 Aug 2024 6.48 AM
root / 996
0755
plugin
--
31 Aug 2024 6.48 AM
root / 996
0755
suite
--
31 Aug 2024 6.48 AM
root / 996
0755
__init__.py
2.307 KB
22 Jul 2019 3.36 AM
root / 996
0644
assertions.py
17.595 KB
22 Jul 2019 3.36 AM
root / 996
0644
assertsql.py
13.084 KB
22 Jul 2019 3.36 AM
root / 996
0644
config.py
2.617 KB
22 Jul 2019 3.36 AM
root / 996
0644
engines.py
10.192 KB
22 Jul 2019 3.36 AM
root / 996
0644
entities.py
3.128 KB
22 Jul 2019 3.36 AM
root / 996
0644
exclusions.py
12.466 KB
22 Jul 2019 3.36 AM
root / 996
0644
fixtures.py
10.561 KB
22 Jul 2019 3.36 AM
root / 996
0644
mock.py
0.872 KB
22 Jul 2019 3.36 AM
root / 996
0644
pickleable.py
2.63 KB
22 Jul 2019 3.36 AM
root / 996
0644
profiling.py
8.313 KB
22 Jul 2019 3.36 AM
root / 996
0644
provision.py
12.952 KB
22 Jul 2019 3.36 AM
root / 996
0644
replay_fixture.py
5.737 KB
22 Jul 2019 3.36 AM
root / 996
0644
requirements.py
26.231 KB
22 Jul 2019 3.36 AM
root / 996
0644
schema.py
3.625 KB
22 Jul 2019 3.36 AM
root / 996
0644
util.py
7.557 KB
22 Jul 2019 3.36 AM
root / 996
0644
warnings.py
1.268 KB
22 Jul 2019 3.36 AM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF