diff options
Diffstat (limited to 'tests/test_asyncio/test_cluster.py')
-rw-r--r-- | tests/test_asyncio/test_cluster.py | 14 |
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 |