[py-svn] r57833 - py/trunk/py/path/local/testing

hpk at codespeak.net hpk at codespeak.net
Fri Sep 5 11:28:26 CEST 2008


Author: hpk
Date: Fri Sep  5 11:28:25 2008
New Revision: 57833

Modified:
   py/trunk/py/path/local/testing/test_local.py
Log:
simplify test setup

Modified: py/trunk/py/path/local/testing/test_local.py
==============================================================================
--- py/trunk/py/path/local/testing/test_local.py	(original)
+++ py/trunk/py/path/local/testing/test_local.py	Fri Sep  5 11:28:25 2008
@@ -10,10 +10,7 @@
         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):
 



More information about the pytest-commit mailing list