Remove support for python <3.11 (#1273)

Python 3.11 ships with latest Debian Bookworm. 
pypy is not that widely used with this library based on statistics. It could be added back when pypy supports python 3.11.
This commit is contained in:
Steven B.
2024-11-18 18:46:36 +00:00
committed by GitHub
parent 0c40939624
commit a01247d48f
55 changed files with 176 additions and 620 deletions

View File

@@ -28,7 +28,7 @@ async def handle_turn_on(dev, turn_on):
await dev.turn_off()
@pytest.fixture()
@pytest.fixture
def dummy_protocol():
"""Return a smart protocol instance with a mocking-ready dummy transport."""
@@ -95,7 +95,7 @@ def pytest_collection_modifyitems(config, items):
for item in items:
item.add_marker(pytest.mark.enable_socket)
else:
print("Running against ip %s" % config.getoption("--ip"))
print("Running against ip {}".format(config.getoption("--ip")))
requires_dummy = pytest.mark.skip(
reason="test requires to be run against dummy data"
)