From 8f1d94fd244dc6e7ac5b23e5e8b3bbaf900ff031 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Thu, 11 Mar 2021 16:31:31 +1300 Subject: [PATCH] obi test: fixed bug introduced in ad1fd3c3 --- python/obitools3/commands/test.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/obitools3/commands/test.pyx b/python/obitools3/commands/test.pyx index 3c56320..e819074 100755 --- a/python/obitools3/commands/test.pyx +++ b/python/obitools3/commands/test.pyx @@ -301,8 +301,8 @@ def fill_column(config, infos, col) : def create_random_column(config, infos) : alias = random.choice([b'', random_unique_name(infos)]) tuples = random.choice([True, False]) + dict_column = False if not tuples : - dict_column = random.choice([True, False]) nb_elements_per_line=random.randint(1, config['test']['maxelts']) if nb_elements_per_line > 1: dict_column = True @@ -311,7 +311,6 @@ def create_random_column(config, infos) : elements_names.append(random_unique_element_name(config, infos)) elements_names = random.choice([None, elements_names]) else : - dict_column = False nb_elements_per_line = 1 elements_names = None name = random_unique_name(infos)