[py-svn] r56678 - py/branch/event/py/test2/testing

hpk at codespeak.net hpk at codespeak.net
Sat Jul 19 17:56:10 CEST 2008


Author: hpk
Date: Sat Jul 19 17:56:09 2008
New Revision: 56678

Modified:
   py/branch/event/py/test2/testing/test_executor.py
Log:
rather skip, than disable


Modified: py/branch/event/py/test2/testing/test_executor.py
==============================================================================
--- py/branch/event/py/test2/testing/test_executor.py	(original)
+++ py/branch/event/py/test2/testing/test_executor.py	Sat Jul 19 17:56:09 2008
@@ -1,6 +1,5 @@
 
 import py
-
 from py.__.test2.executor import RunExecutor, ForkExecutor, ApigenExecutor
 from py.__.test2.rsession.testing.basetest import BasicRsessionTest
 
@@ -53,7 +52,9 @@
         assert testrep.failed 
 
 class TestForkExecutor(TestExecutor):
-    disabled = (py.std.sys.platform == "win32")
+    def setup_class(cls):
+        if not hasattr(py.std.os, 'fork'):
+            py.test.skip("need os.fork()")
     Executor = ForkExecutor
 
 class TestApigenExecutor(TestExecutor):



More information about the pytest-commit mailing list