8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287b03f commit aff9d1fCopy full SHA for aff9d1f
tests/test_core.py
@@ -13,12 +13,7 @@
13
import unittest
14
import unittest.mock
15
from typing import Tuple, Union, cast
16
-from unittest.mock import Mock, patch
17
-
18
-if sys.version_info[:3][1] < 8:
19
- AsyncMock = Mock
20
-else:
21
- from unittest.mock import AsyncMock
+from unittest.mock import AsyncMock, Mock, patch
22
23
import pytest
24
@@ -748,7 +743,6 @@ def _background_register():
748
743
749
744
750
745
@pytest.mark.asyncio
751
-@unittest.skipIf(sys.version_info[:3][1] < 8, "Requires Python 3.8 or later to patch _async_setup")
752
746
@patch("zeroconf._core._STARTUP_TIMEOUT", 0)
753
747
@patch("zeroconf._core.AsyncEngine._async_setup", new_callable=AsyncMock)
754
async def test_event_loop_blocked(mock_start):
0 commit comments