From: Christian Herdtweck Date: Thu, 9 Jun 2016 15:54:51 +0000 (+0200) Subject: fix unittest's create_pseudo_random_file: do return file name as docu says X-Git-Tag: v2.2~35^2~24 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=7b900c3ee1d5b6e38fb210aa992c756c478fd453;p=python-delta-tar 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! --- 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):