Skip to content

Commit

Permalink
Remove selector attribute (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar authored Jun 2, 2024
1 parent 035187b commit 5610449
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tortoise/contrib/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

_CONFIG: dict = {}
_CONNECTIONS: dict = {}
_SELECTOR = None
_LOOP: AbstractEventLoop = None # type: ignore
_MODULES: Iterable[Union[str, ModuleType]] = []
_CONN_CONFIG: dict = {}
Expand Down Expand Up @@ -98,7 +97,6 @@ def initializer(
# pylint: disable=W0603
global _CONFIG
global _CONNECTIONS
global _SELECTOR
global _LOOP
global _TORTOISE_TEST_DB
global _MODULES
Expand All @@ -109,7 +107,6 @@ def initializer(
_CONFIG = getDBConfig(app_label=app_label, modules=_MODULES)
loop = loop or asyncio.get_event_loop()
_LOOP = loop
_SELECTOR = loop._selector # type: ignore
loop.run_until_complete(_init_db(_CONFIG))
_CONNECTIONS = connections._copy_storage()
_CONN_CONFIG = connections.db_config.copy()
Expand All @@ -125,7 +122,6 @@ def finalizer() -> None:
"""
_restore_default()
loop = _LOOP
loop._selector = _SELECTOR # type: ignore
loop.run_until_complete(Tortoise._drop_databases())


Expand Down

0 comments on commit 5610449

Please sign in to comment.