Skip to content

Commit 70c69c5

Browse files
committed
Relax assertion to prevent failure when testing latest Trino image
1 parent 274d866 commit 70c69c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration/test_dbapi_integration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def test_select_query(trino_connection, trino_version):
4949
rows = cur.fetchall()
5050
assert len(rows) > 0
5151
row = rows[0]
52-
assert row[2] == trino_version
52+
if trino_version == "latest":
53+
assert row[2] is not None
54+
else:
55+
assert row[2] == trino_version
5356
columns = dict([desc[:2] for desc in cur.description])
5457
assert columns["node_id"] == "varchar"
5558
assert columns["http_uri"] == "varchar"

0 commit comments

Comments
 (0)