Skip to content

Commit 863e043

Browse files
committed
Ruff PT: fixed remaining pytest linting issues
1 parent 9849a19 commit 863e043

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

tests/fast/api/test_query_interrupt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ def test_query_interruption(self):
3232
# indicating that the query interruption functionality is broken
3333
assert True
3434
except KeyboardInterrupt:
35-
pytest.fail()
35+
pytest.fail("Interrupted by user")
3636
thread.join()

tests/fast/api/test_read_csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def seek(self, loc) -> NoReturn:
349349

350350
# The MemoryFileSystem reads the content into another object, so this fails instantly
351351
obj = ReadError()
352-
with pytest.raises(ValueError):
352+
with pytest.raises(ValueError, match="-1"):
353353
duckdb_cursor.read_csv(obj).fetchall()
354354

355355
# For that same reason, this will not error, because the data is retrieved with 'read' and then

tests/fast/pandas/test_fetch_nested.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,6 @@ def test_struct_df(self, duckdb_cursor, query, expected):
198198

199199
# fmt: off
200200
@pytest.mark.parametrize(("query", "expected", "expected_error"), [
201-
("SELECT a from (select MAP(LIST_VALUE(1, 2, 3, 4),LIST_VALUE(10, 9, 8, 7)) as a) as t", {
202-
'a': [
203-
{
204-
'1':10,
205-
'2':9,
206-
'3':8,
207-
'4':7
208-
}
209-
]
210-
}, ""),
211201
("SELECT a from (select MAP(LIST_VALUE(1, 2, 3, 4),LIST_VALUE(10, 9, 8, 7)) as a) as t", {
212202
'a': [
213203
{

0 commit comments

Comments
 (0)