diff --git a/tests/network_test.py b/tests/network_test.py index dfb574a..9261c63 100755 --- a/tests/network_test.py +++ b/tests/network_test.py @@ -3,13 +3,20 @@ from __future__ import annotations import random +import sys import time -from typing import Final, override +from typing import Final import pytest from nrw.network import Client, Connection, Server +if sys.version_info >= (3, 12): # pragma: >=3.12 cover + from typing import override +else: # pragma: <3.12 cover + from typing_extensions import override + + LOCALHOST: Final[str] = "127.0.0.1" # pylint: disable=C0115, E1101