Mercurial > kallithea
diff rhodecode/tests/__init__.py @ 1397:dc960653f8d2 beta
Added new random directory for each test to be better sandboxed
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 29 Jun 2011 00:41:51 +0200 |
parents | 04edf7622d91 |
children | df04752daa64 b097c4e328a2 |
line wrap: on
line diff
--- a/rhodecode/tests/__init__.py Wed Jun 29 00:25:33 2011 +0200 +++ b/rhodecode/tests/__init__.py Wed Jun 29 00:41:51 2011 +0200 @@ -38,8 +38,8 @@ environ = {} #SOME GLOBALS FOR TESTS -TESTS_TMP_PATH = jn('/', 'tmp') - +from tempfile import _RandomNameSequence +TESTS_TMP_PATH = jn('/', 'tmp', 'rc_test_%s' % _RandomNameSequence().next()) HG_REPO = 'vcs_test_hg' GIT_REPO = 'vcs_test_git'