Comment 3 for bug 239097

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 239097] Re: running test suite pollutes current working dir

On Thu, Oct 2, 2008 at 2:40 AM, vila <email address hidden> wrote:
> Ran into it again.

Well done for fixing it.

> -class TestScriptTask(TestCase):
> +class TestScriptTask(TestCaseInTempDir):
>
> def test_compile(self):
> task = userscript.ScriptTask()
>
>
> In fact, it wasn't lazy coding on your part, bzrlib.test.TestCase really set HOME as os.getcwd() but all our tests relies on TestCaseInTempDir to clean after themselves.

I think this is kind of a bug in TestCase too...

> I can't push to lp:bzr-usertest though.

I've changed the trunk for that plugin to be owned by ~bzr of which
you are a member, so you should be able to do it now.

--
Martin <http://launchpad.net/~mbp/>