Skip to content

Commit 75db3c0

Browse files
committed
Remove unused function _removesuffix
1 parent 6bc9268 commit 75db3c0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pytest_asyncio/plugin.py

-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import functools
77
import inspect
88
import socket
9-
import sys
109
import warnings
1110
from asyncio import AbstractEventLoopPolicy
1211
from textwrap import dedent
@@ -656,12 +655,6 @@ def _patched_collect():
656655
collector.obj.__pytest_asyncio_scoped_event_loop = scoped_event_loop
657656

658657

659-
def _removesuffix(s: str, suffix: str) -> str:
660-
if sys.version_info < (3, 9):
661-
return s[: -len(suffix)]
662-
return s.removesuffix(suffix)
663-
664-
665658
@contextlib.contextmanager
666659
def _temporary_event_loop_policy(policy: AbstractEventLoopPolicy) -> Iterator[None]:
667660
old_loop_policy = asyncio.get_event_loop_policy()

0 commit comments

Comments
 (0)