Skip to content

Commit 3e10fd7

Browse files
mdesmethashhar
authored andcommitted
Use int comparison for trino_version
1 parent 649d48d commit 3e10fd7

File tree

4 files changed

+58
-54
lines changed

4 files changed

+58
-54
lines changed

tests/integration/conftest.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import os
1313
import socket
1414
import subprocess
15+
import sys
1516
import time
1617
from contextlib import closing
1718
from uuid import uuid4
@@ -157,5 +158,7 @@ def run_trino():
157158
stop_trino(container_id, proc)
158159

159160

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

0 commit comments

Comments
 (0)