From 4cd33bfb5f37c5120b9a9ee9f495a44c8733e973 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Fri, 7 Nov 2014 17:13:52 -0800 Subject: [PATCH] stop hardcoding the temp root Summary: The hardcoded value wasn't appropriate for Windows. Reviewers: sean Differential Revision: https://phabricator.buildinspace.com/D116 --- tests/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shared.py b/tests/shared.py index f59a7f6..f4fd952 100644 --- a/tests/shared.py +++ b/tests/shared.py @@ -22,7 +22,7 @@ def tmp_file(): def _tmp_root(): - root = '/tmp/peru/test' + root = os.path.join(tempfile.gettempdir(), 'peru', 'test') makedirs(root) return root