OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tests.test_runtime_udf Namespace Reference

Classes

class  TestRuntimeUDF
 

Functions

def catch_udf_support_disabled
 

Function Documentation

def tests.test_runtime_udf.catch_udf_support_disabled (   mth)

Definition at line 9 of file test_runtime_udf.py.

References run_benchmark_import.type.

9 
11  def new_mth(self, con):
12  try:
13  return mth(self, con)
14  except Exception as msg:
15  if type(
16  msg
17  ).__name__ == 'TDBException' and msg.error_msg.startswith(
18  'Runtime UDF and UDTF function registration is disabled'
19  ):
20  print('Ignoring `%s` failure' % (msg.error_msg))
21  return
22  raise
23 
24  new_mth.__name__ = mth.__name__
25  return new_mth
26 
27 
@pytest.mark.usefixtures("heavydb_server")