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):