From 7b900c3ee1d5b6e38fb210aa992c756c478fd453 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 9 Jun 2016 17:54:51 +0200 Subject: [PATCH] fix unittest's create_pseudo_random_file: do return file name as docu says author of that module seems to never have heard of the tempfile module in python stdlib! --- testing/create_pseudo_random_files.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/testing/create_pseudo_random_files.py b/testing/create_pseudo_random_files.py index 1d7d8d5..75e1af8 100755 --- a/testing/create_pseudo_random_files.py +++ b/testing/create_pseudo_random_files.py @@ -64,8 +64,9 @@ def create_file(path, size): if not os.path.exists(new_file): with open(new_file, 'w') as f: f.write(create_rand_cad(size)) + return new_file else: - create_file(path, size) + return create_file(path, size) def generate_list_sizes(nfile, size, distribute_size): -- 1.7.1