[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zodb-checkins
Subject:    [Zodb-checkins] CVS: StandaloneZODB/zdaemon/tests - testDaemon.py:1.2
From:       Jeremy Hylton <jeremy () zope ! com>
Date:       2002-04-25 19:48:31
[Download RAW message or body]

Update of /cvs-repository/StandaloneZODB/zdaemon/tests
In directory cvs.zope.org:/tmp/cvs-serv12673

Modified Files:
	testDaemon.py 
Log Message:
Don't run any zdaemon tests unless the platform has setsid().

We believe that zdaemon is only intended for POSIX platforms.  If
someone thinks otherwise, fix the tests!


=== StandaloneZODB/zdaemon/tests/testDaemon.py 1.1 => 1.2 ===
 
 def test_suite():
-    return unittest.makeSuite(DaemonTest)
+    if hasattr(os, 'setsid'):
+        return unittest.makeSuite(DaemonTest)
+    else:
+        return None
+
 




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic