[py-svn] r36232 - py/dist/py/test/rsession/testing

fijal at codespeak.net fijal at codespeak.net
Mon Jan 8 11:24:26 CET 2007


Author: fijal
Date: Mon Jan  8 11:24:24 2007
New Revision: 36232

Modified:
   py/dist/py/test/rsession/testing/test_rsession.py
Log:
Make test use ensuretemp.


Modified: py/dist/py/test/rsession/testing/test_rsession.py
==============================================================================
--- py/dist/py/test/rsession/testing/test_rsession.py	(original)
+++ py/dist/py/test/rsession/testing/test_rsession.py	Mon Jan  8 11:24:24 2007
@@ -110,12 +110,9 @@
 ##        assert res == "ok"
 
     def test_example_distribution_minus_x(self):
-        #py.test.skip("Works, but does not test what it should")
-        # XXX find a better way for the below 
-        tmpdir = py.path.local(py.__file__).dirpath().dirpath()
+        tmpdir = py.test.ensuretemp("example_distribution_minus_x")
         tmpdir.ensure("sub", "conftest.py").write(py.code.Source("""
             disthosts = [%r]
-            distrsync_roots = ["sub", "py"]
         """ % 'localhost'))
         tmpdir.ensure("sub", "__init__.py")
         tmpdir.ensure("sub", "test_one.py").write(py.code.Source("""


More information about the py-svn mailing list