8000 chore(tests): remove outdated python 3.7 compatibility code (#1431) · python-zeroconf/python-zeroconf@aff9d1f · GitHub
[go: up one dir, main page]

Skip to content

Commit aff9d1f

Browse files
authored
chore(tests): remove outdated python 3.7 compatibility code (#1431)
1 parent 287b03f commit aff9d1f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/test_core.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
import unittest
1414
import unittest.mock
1515
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
16+
from unittest.mock import AsyncMock, Mock, patch
2217

2318
import pytest
2419

@@ -748,7 +743,6 @@ def _background_register():
748743

749744

750745
@pytest.mark.asyncio
751-
@unittest.skipIf(sys.version_info[:3][1] < 8, "Requires Python 3.8 or later to patch _async_setup")
752746
@patch("zeroconf._core._STARTUP_TIMEOUT", 0)
753747
@patch("zeroconf._core.AsyncEngine._async_setup", new_callable=AsyncMock)
754748
async def test_event_loop_blocked(mock_start):

0 commit comments

Comments
 (0)
0