From e12cc14c9bd8af5c03050de6c1934d52c566958f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 13 Dec 2016 01:31:07 +0100 Subject: [plugins] add optional dir arg to create_file in plugin_tests Signed-off-by: Michael Adam --- tests/plugin_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/plugin_tests.py') diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py index 14d3b49c..ae8db065 100644 --- a/tests/plugin_tests.py +++ b/tests/plugin_tests.py @@ -18,8 +18,8 @@ PATH = os.path.dirname(__file__) def j(filename): return os.path.join(PATH, filename) -def create_file(size): - f = tempfile.NamedTemporaryFile(delete=False) +def create_file(size, dir=None): + f = tempfile.NamedTemporaryFile(delete=False, dir=dir) f.write(six.b("*" * size * 1024 * 1024)) f.flush() f.close() -- cgit