From 3cf2e4d60a93404a979f39323837848b6bf1a67f Mon Sep 17 00:00:00 2001 From: Giorgos Korfiatis <gkorf@grnet.gr> Date: Fri, 31 Jul 2015 15:17:16 +0300 Subject: [PATCH] Use osx compatible tmp path in tests --- test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 975a2e7..42ee35b 100644 --- a/test.py +++ b/test.py @@ -30,6 +30,7 @@ import shutil import unittest import mock import sqlite3 +import tempfile from functools import wraps from agkyra.config import AgkyraConfig, CONFIG_PATH @@ -50,7 +51,7 @@ logger.setLevel(logging.INFO) # kamakirecv_logger.addHandler(handler) # kamakirecv_logger.setLevel(logging.DEBUG) -TMP = "/tmp" +TMP = os.path.realpath(tempfile.gettempdir()) def hash_file(fil): @@ -89,7 +90,7 @@ class AgkyraTest(unittest.TestCase): cls.ID = "ΞΞΞΞ₯Ξ‘ΞTEST" + str(random.random()).split('.')[1] - cls.LOCAL_ROOT_PATH = utils.join_path("/tmp", cls.ID) + cls.LOCAL_ROOT_PATH = utils.join_path(TMP, cls.ID) cls.settings = SyncerSettings( auth_url=AUTHENTICATION_URL, -- GitLab