diff --git a/pyproject.toml b/pyproject.toml index 27360801..59fa9f3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,7 +61,7 @@ dev = [ "mypy<1.20", "pytest<10", "pytz", - "ruff<0.15", + "ruff<0.16", ] docs = [ "sphinx", diff --git a/src/crate/client/cursor.py b/src/crate/client/cursor.py index 587f1491..b7aac089 100644 --- a/src/crate/client/cursor.py +++ b/src/crate/client/cursor.py @@ -193,7 +193,8 @@ def next(self): else: raise ProgrammingError("Cursor closed") - __next__ = next + def __next__(self): + return self.next() @property def description(self): diff --git a/tests/client/test_cursor.py b/tests/client/test_cursor.py index 46fbd4bd..7a7491ca 100644 --- a/tests/client/test_cursor.py +++ b/tests/client/test_cursor.py @@ -250,9 +250,9 @@ def test_execute_custom_converter(mocked_connection): # Extends the DefaultTypeConverter converter = DefaultTypeConverter( { - DataType.BIT: lambda value: value is not None - and int(value[2:-1], 2) - or None + DataType.BIT: lambda value: ( + value is not None and int(value[2:-1], 2) or None + ) } ) cursor = mocked_connection.cursor(converter=converter) diff --git a/tests/conftest.py b/tests/conftest.py index a64b5762..f6325b2c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -227,7 +227,6 @@ def doctest_node(): class HttpsServer(HTTPServer): - PORT = 65534 HOST = "localhost" CERT_FILE = assets_path("pki/server_valid.pem")