[MERGE] More than double the speed of "bzr selftest"

Martin Pool mbp at canonical.com
Wed Apr 11 06:52:08 BST 2007

Martin Pool has voted +1 (conditional).
Status is now: Conditionally approved
Great subject!

You need to use bzrlib.osutils.rmtree to be safe on Windows.

+                    assert self.test_dir.endswith('/work'), 
+                    shutil.rmtree(self.test_dir[:-len('/work')])

I think it would be cleaner and simpler to just do an addCleanup from 
TestCaseInTempDir.makeAndChdirToTestDir.  Wouldn't that work?

For details, see: 

More information about the bazaar mailing list