diff --git a/pyproject.toml b/pyproject.toml index a2a0ed24f..c6654194d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,19 +60,19 @@ documentation = [ "sphinx-rtd-theme>=1.1.1" ] development = [ - "build>=1.0.3", - "codespell>=2.2.2", - "coverage>=7.4.0", - "mypy>=1.6.0", - "pylint>=3.0.0", - "pytest>=7.3.1", - "pytest-asyncio>=0.20.3", + "build>=1.1.1", + "codespell>=2.2.6", + "coverage>=7.4.3", + "mypy>=1.9.0", + "pylint>=3.1.0", + "pytest>=8.1.0", + "pytest-asyncio>=0.23.5.post1", "pytest-cov>=4.1.0", "pytest-profiling>=1.7.0", - "pytest-timeout>=2.2.0", - "pytest-xdist>=3.3.1", - "ruff>=0.2.0", - "twine>=4.0.2", + "pytest-timeout>=2.3.1", + "pytest-xdist>=3.5.0", + "ruff>=0.3.3", + "twine>=5.0.0", "types-Pygments", "types-pyserial" ] diff --git a/test/conftest.py b/test/conftest.py index c405d2490..ee499042a 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -24,8 +24,6 @@ def pytest_configure(): """Configure pytest.""" - pytest.IS_DARWIN = platform.system().lower() == "darwin" - pytest.IS_WINDOWS = platform.system().lower() == "windows" # -----------------------------------------------------------------------# @@ -93,7 +91,7 @@ def prepare_commparams_client(use_port, use_host, use_comm_type): """Prepare CommParamsClass object.""" if use_host == NULLMODEM_HOST and use_comm_type == CommType.SERIAL: use_host = f"{NULLMODEM_HOST}:{use_port}" - timeout = 10 if not pytest.IS_WINDOWS else 2 + timeout = 10 if platform.system().lower() != "windows" else 2 return CommParams( comm_name="test comm", comm_type=use_comm_type, diff --git a/test/transport/test_comm.py b/test/transport/test_comm.py index 918da70dc..4ddf7b742 100644 --- a/test/transport/test_comm.py +++ b/test/transport/test_comm.py @@ -1,5 +1,6 @@ """Test transport.""" import asyncio +import platform import time from unittest import mock @@ -13,7 +14,7 @@ from pymodbus.transport.serialtransport import SerialTransport -FACTOR = 1.2 if not pytest.IS_WINDOWS else 4.2 +FACTOR = 1.2 if platform.system().lower() != "windows" else 4.2 class TestTransportComm: