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
+3 -1
View File
@@ -11,7 +11,9 @@ from dvc.utils import rmtree
class BasicEnvironment(TestCase):
def init_environment(self, test_dir=tempfile.mkdtemp(), curr_dir=None):
def init_environment(self,
test_dir=GitWrapperI.get_long_path(tempfile.mkdtemp()),
curr_dir=None):
self._test_dir = os.path.realpath(test_dir)
self._proj_dir = 'proj'
self._test_git_dir = os.path.join(self._test_dir, self._proj_dir)