mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
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:
@@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user