mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Minor non-functional test fixes.
This commit is contained in:
parent
06255a9b9f
commit
aa0de4a0c8
@ -79,10 +79,6 @@ CAST({datetime} as DateTime64(18))
|
||||
formatDateTime({datetime}, '%C %d %D %e %F %H %I %j %m %M %n %p %R %S %t %T %u %V %w %y %Y %%')
|
||||
""".splitlines()
|
||||
|
||||
# filter out empty lines and commented out lines
|
||||
COMMENTED_OUT_LINE_RE = re.compile(r"^\s*#")
|
||||
functions = list(filter(lambda f: len(f) != 0 and COMMENTED_OUT_LINE_RE.match(f) == None, functions))
|
||||
|
||||
# Expanded later to cartesian product of all arguments.
|
||||
# NOTE: {N} to be turned into N after str.format() for keys (format string), but not for list of values!
|
||||
extra_ops =\
|
||||
@ -164,6 +160,10 @@ for funcs, args in extra_ops:
|
||||
result_func = func.format(**dict(zip(args_keys, args_vals)))
|
||||
functions.append(result_func)
|
||||
|
||||
# filter out empty lines and commented out lines
|
||||
COMMENTED_OUT_LINE_RE = re.compile(r"^\s*#")
|
||||
functions = list(filter(lambda f: len(f) != 0 and COMMENTED_OUT_LINE_RE.match(f) == None, functions))
|
||||
|
||||
if sys.version_info[0] > 2:
|
||||
escape_string_codec = 'unicode_escape'
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user