From db80b6c003e3a6f992c421d1dbd478e030e36fe7 Mon Sep 17 00:00:00 2001 From: Guilherme Leobas Date: Tue, 7 Mar 2023 14:47:48 -0300 Subject: [PATCH] Fix test_daytimeinterval when server was compiled with SYSTEM_TFS=off (#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 --- rbc/tests/heavydb/test_daytimeinterval.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rbc/tests/heavydb/test_daytimeinterval.py b/rbc/tests/heavydb/test_daytimeinterval.py index 390ae5be..11292cf2 100644 --- a/rbc/tests/heavydb/test_daytimeinterval.py +++ b/rbc/tests/heavydb/test_daytimeinterval.py @@ -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