Skip to content

Commit

Permalink
Fix test_daytimeinterval when server was compiled with SYSTEM_TFS=off (
Browse files Browse the repository at this point in the history
…#532)

* Fix test_daytimeinterval when server was compiled with SYSTEM_TFS=off

* Fix test_daytimeinterval when server was compiled with SYSTEM_TFS=off

* address reviewer comment
  • Loading branch information
guilhermeleobas authored Mar 7, 2023
1 parent 4343d75 commit db80b6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rbc/tests/heavydb/test_daytimeinterval.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ def heavydb():
for o in heavydb_fixture(
globals(), debug=False, load_test_data=False, minimal_version=(6, 2)
):
try:
o.sql_execute('select * from table(generate_series(0, 10, 1));')
except Exception as e:
msg = "Undefined function call 'generate_series' in SQL statement"
if msg in str(e):
pytest.skip('test requires server to be compiled with SYSTEM_TFS '
f'enabled ({e}):')
else:
raise
define(o)
yield o

Expand Down

0 comments on commit db80b6c

Please sign in to comment.