Skip to content

Commit

Permalink
tests: remove mock py37 compat import
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Jul 2, 2023
1 parent 9714e69 commit cee5978
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pytest >=6.0.0
pytest-asyncio
pytest-cov
coverage[toml]
mock ; python_version<"3.8"
requests-mock
freezegun>=1.0.0
shtab
Expand Down
8 changes: 1 addition & 7 deletions tests/utils/test_processoutput.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
from collections import deque
from typing import Iterable, Optional
from unittest.mock import AsyncMock, Mock, call, patch

import freezegun
import pytest
Expand All @@ -9,13 +10,6 @@
from streamlink.utils.processoutput import ProcessOutput


try:
from unittest.mock import AsyncMock, Mock, call, patch # type: ignore
except ImportError:
# noinspection PyUnresolvedReferences
from mock import AsyncMock, Mock, call, patch # type: ignore


class AsyncIterator:
def __init__(self, event_loop: asyncio.BaseEventLoop, iterable: Optional[Iterable] = None):
self._loop = event_loop
Expand Down

0 comments on commit cee5978

Please sign in to comment.