This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
# testing/plugin/pytestplugin.py
|
||||
# Copyright (C) 2005-2025 the SQLAlchemy authors and contributors
|
||||
# <see AUTHORS file>
|
||||
#
|
||||
# This module is part of SQLAlchemy and is released under
|
||||
# the MIT License: https://www.opensource.org/licenses/mit-license.php
|
||||
# mypy: ignore-errors
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -182,12 +176,6 @@ def pytest_sessionfinish(session):
|
||||
collect_types.dump_stats(session.config.option.dump_pyannotate)
|
||||
|
||||
|
||||
def pytest_unconfigure(config):
|
||||
from sqlalchemy.testing import asyncio
|
||||
|
||||
asyncio._shutdown()
|
||||
|
||||
|
||||
def pytest_collection_finish(session):
|
||||
if session.config.option.dump_pyannotate:
|
||||
from pyannotate_runtime import collect_types
|
||||
@@ -270,6 +258,7 @@ def pytest_collection_modifyitems(session, config, items):
|
||||
for test_class in test_classes:
|
||||
# transfer legacy __backend__ and __sparse_backend__ symbols
|
||||
# to be markers
|
||||
add_markers = set()
|
||||
if getattr(test_class.cls, "__backend__", False) or getattr(
|
||||
test_class.cls, "__only_on__", False
|
||||
):
|
||||
@@ -674,9 +663,9 @@ class PytestFixtureFunctions(plugin_base.FixtureFunctions):
|
||||
"i": lambda obj: obj,
|
||||
"r": repr,
|
||||
"s": str,
|
||||
"n": lambda obj: (
|
||||
obj.__name__ if hasattr(obj, "__name__") else type(obj).__name__
|
||||
),
|
||||
"n": lambda obj: obj.__name__
|
||||
if hasattr(obj, "__name__")
|
||||
else type(obj).__name__,
|
||||
}
|
||||
|
||||
def combinations(self, *arg_sets, **kw):
|
||||
|
||||
Reference in New Issue
Block a user