summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_cluster.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-07-27 16:18:41 +0300
committerGitHub <noreply@github.com>2022-07-27 16:18:41 +0300
commit607a59ad6ff0cabc7b0af7480f42043aebc2a33b (patch)
tree9aed66dc63dabb925c08203c2dc82b057305e85a /tests/test_asyncio/test_cluster.py
parentf665bd306dc843cec3e8fa01d6f4061385d1812e (diff)
downloadredis-py-607a59ad6ff0cabc7b0af7480f42043aebc2a33b.tar.gz
Drop python 3.6 support (#2306)
Diffstat (limited to 'tests/test_asyncio/test_cluster.py')
-rw-r--r--tests/test_asyncio/test_cluster.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/test_asyncio/test_cluster.py b/tests/test_asyncio/test_cluster.py
index 1365e4d..e299395 100644
--- a/tests/test_asyncio/test_cluster.py
+++ b/tests/test_asyncio/test_cluster.py
@@ -2,22 +2,12 @@ import asyncio
import binascii
import datetime
import os
-import sys
import warnings
from typing import Any, Awaitable, Callable, Dict, List, Optional, Type, Union
from urllib.parse import urlparse
import pytest
-
-from .compat import mock
-
-if sys.version_info[0:2] == (3, 6):
- import pytest as pytest_asyncio
-
- pytestmark = pytest.mark.asyncio
-else:
- import pytest_asyncio
-
+import pytest_asyncio
from _pytest.fixtures import FixtureRequest
from redis.asyncio.cluster import ClusterNode, NodesManager, RedisCluster
@@ -44,6 +34,8 @@ from tests.conftest import (
skip_unless_arch_bits,
)
+from .compat import mock
+
pytestmark = pytest.mark.onlycluster