Skip to content

Commit a2a08ff

Browse files
committed
Use int comparison for trino_version
1 parent 4c57774 commit a2a08ff

File tree

4 files changed

+57
-53
lines changed

4 files changed

+57
-53
lines changed

tests/integration/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414
import socket
1515
import subprocess
16+
import sys
1617
import time
1718
from contextlib import closing
1819
from uuid import uuid4
@@ -156,5 +157,7 @@ def run_trino():
156157
stop_trino(container_id, proc)
157158

158159

159-
def trino_version():
160-
return TRINO_VERSION
160+
def trino_version() -> int:
161+
if TRINO_VERSION == "latest":
162+
return sys.maxsize
163+
return int(TRINO_VERSION)

0 commit comments

Comments
 (0)