diff options
author | Tommi Virtanen <tv@eagain.net> | 2007-09-01 16:36:01 -0700 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2007-09-01 16:44:28 -0700 |
commit | fd11351859233727538fa47213df7c7c9821d9e0 (patch) | |
tree | 9f38ba2a57cb3c8099641d0293aa8a672fe6b5c5 /gitosis/test/test_repository.py | |
parent | Make sure re-initing a repository does not change access modes. (diff) | |
download | gitosis-dakkar-fd11351859233727538fa47213df7c7c9821d9e0.tar.gz gitosis-dakkar-fd11351859233727538fa47213df7c7c9821d9e0.tar.bz2 gitosis-dakkar-fd11351859233727538fa47213df7c7c9821d9e0.zip |
Use separate temp directories for separate tests.
Makes unit tests for the previous commit work even when not run alone.
Should have done this from the beginning, but didn't find the trick
for getting the module name.
Diffstat (limited to 'gitosis/test/test_repository.py')
-rw-r--r-- | gitosis/test/test_repository.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gitosis/test/test_repository.py b/gitosis/test/test_repository.py index 2ac0d79..c9fbc58 100644 --- a/gitosis/test/test_repository.py +++ b/gitosis/test/test_repository.py @@ -1,7 +1,6 @@ from nose.tools import eq_ as eq import os -import shutil from gitosis import repository @@ -39,8 +38,6 @@ def test_init_exist_git(): def test_init_templates(): tmp = maketemp() path = os.path.join(tmp, 'repo.git') - if os.path.exists(path): - shutil.rmtree(path) templatedir = os.path.join( os.path.dirname(__file__), 'mocktemplates', |