Skip to content

Commit

Permalink
Remove unused function _removesuffix
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech authored and seifertm committed Mar 19, 2024
1 parent cdd2c49 commit 13d4b79
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import functools
import inspect
import socket
import sys
import warnings
from asyncio import AbstractEventLoopPolicy
from textwrap import dedent
Expand Down Expand Up @@ -656,12 +655,6 @@ def _patched_collect():
collector.obj.__pytest_asyncio_scoped_event_loop = scoped_event_loop


def _removesuffix(s: str, suffix: str) -> str:
if sys.version_info < (3, 9):
return s[: -len(suffix)]
return s.removesuffix(suffix)


@contextlib.contextmanager
def _temporary_event_loop_policy(policy: AbstractEventLoopPolicy) -> Iterator[None]:
old_loop_policy = asyncio.get_event_loop_policy()
Expand Down

0 comments on commit 13d4b79

Please sign in to comment.