Skip to content

Commit f459948

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

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pytest_asyncio/plugin.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,6 @@ def _patched_collect():
656656
collector.obj.__pytest_asyncio_scoped_event_loop = scoped_event_loop
657657

658658

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-
665659
@contextlib.contextmanager
666660
def _temporary_event_loop_policy(policy: AbstractEventLoopPolicy) -> Iterator[None]:
667661
old_loop_policy = asyncio.get_event_loop_policy()

0 commit comments

Comments
 (0)