Windows symlink: wrap tempfile.mkdtemp() to long path func

This commit is contained in:
Dmitry Petrov
2017-04-10 12:20:06 -07:00
parent f628c28d3d
commit f539fa8c60
5 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -5,11 +5,12 @@ from unittest import TestCase
from dvc import Runtime
from dvc.executor import Executor, ExecutorError
from dvc.git_wrapper import GitWrapperI
class TestExecutor(TestCase):
def setUp(self):
self.test_dir = tempfile.mkdtemp()
self.test_dir = GitWrapperI.get_long_path(tempfile.mkdtemp())
self.file1 = 'file1.txt'
fd1 = open(os.path.join(self.test_dir, self.file1), 'w+')