Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
uriyyo committed Sep 10, 2024
1 parent bac2098 commit 0d65eb5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/patch.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import asyncio
from functools import lru_cache

from pydantic import generics

# https://github.com/pydantic/pydantic/issues/4483
generics._generic_types_cache = {}
generics._assigned_parameters = {}


@lru_cache()
def _get_event_loop_no_warn(*_):
loop = asyncio.new_event_loop()
loop.__pytest_asyncio = True

return loop


# plugin._get_event_loop_no_warn = _get_event_loop_no_warn

0 comments on commit 0d65eb5

Please sign in to comment.