Skip to content

Commit

Permalink
Remove unused function _removesuffix
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Mar 9, 2024
1 parent 6bc9268 commit f459948
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,12 +656,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 f459948

Please sign in to comment.