Rev 119: Fix bug #239097 by using TestCaseInTempDir for test cases. in file:///v/home/vila/.bazaar/plugins/usertest/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Oct 2 11:16:57 BST 2008


At file:///v/home/vila/.bazaar/plugins/usertest/

------------------------------------------------------------
revno: 119
revision-id: v.ladeuil+lp at free.fr-20081002101650-jofu3760xtp41edb
parent: ian.clatworthy at internode.on.net-20080706141541-o8oyrp8pv029ao21
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: usertest
timestamp: Thu 2008-10-02 12:16:50 +0200
message:
  Fix bug #239097 by using TestCaseInTempDir for test cases.
  
  * tests/test_script.py: 
  Use TestCaseInTempDir instead of just TestCase to avoid polluting
  current directory.
-------------- next part --------------
=== modified file 'tests/test_script.py'
--- a/tests/test_script.py	2008-02-06 06:55:50 +0000
+++ b/tests/test_script.py	2008-10-02 10:16:50 +0000
@@ -18,7 +18,7 @@
 import random
 import string
 
-from bzrlib.tests import TestCase
+from bzrlib.tests import TestCaseInTempDir
 
 from bzrlib.plugins.usertest import (
     toolprofiler,
@@ -28,7 +28,7 @@
     )
 
 
-class TestScriptTask(TestCase):
+class TestScriptTask(TestCaseInTempDir):
 
     def test_compile(self):
         task = userscript.ScriptTask()



More information about the bazaar-commits mailing list