Skip to content

Commit

Permalink
Bump dependencies. (pymodbus-dev#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Mar 17, 2024
1 parent bd84b6f commit a2d74cf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down
4 changes: 1 addition & 3 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

def pytest_configure():
"""Configure pytest."""
pytest.IS_DARWIN = platform.system().lower() == "darwin"
pytest.IS_WINDOWS = platform.system().lower() == "windows"


# -----------------------------------------------------------------------#
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion test/transport/test_comm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test transport."""
import asyncio
import platform
import time
from unittest import mock

Expand All @@ -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:
Expand Down

0 comments on commit a2d74cf

Please sign in to comment.