From a978e606c3758c6499808c01003c4d1fe0b9445a Mon Sep 17 00:00:00 2001 From: hpk Date: Fri, 5 Sep 2008 11:28:25 +0200 Subject: [PATCH] [svn r57833] simplify test setup --HG-- branch : trunk --- py/path/local/testing/test_local.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/py/path/local/testing/test_local.py b/py/path/local/testing/test_local.py index e86e4d3e6..6ed76cd60 100644 --- a/py/path/local/testing/test_local.py +++ b/py/path/local/testing/test_local.py @@ -10,10 +10,7 @@ class LocalSetup: setuptestfs(cls.root) def setup_method(self, method): - self.tmpdir = self.root.ensure('tmpdir', dir=1) - - def teardown_method(self, method): - self.tmpdir.remove(rec=1) + self.tmpdir = self.root.mkdir(method.__name__) class TestLocalPath(LocalSetup, CommonFSTests):