[Buildbot-commits] buildbot/buildbot/test test_web.py,1.4,1.5

Brian Warner warner at users.sourceforge.net
Thu Oct 14 16:47:35 UTC 2004


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3733/buildbot/test

Modified Files:
	test_web.py 
Log Message:
* buildbot/master.py (BuildMaster.startService): don't register a
SIGHUP handler if the signal module has no SIGHUP attribute.
Apparently win32 does this.

* buildbot/scripts/runner.py (start): add --reactor=win32 on win32

* buildbot/test/test_web.py (WebTest.test_webPathname): skip the
test if the reactor can't offer UNIX sockets


Index: test_web.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_web.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_web.py	30 Sep 2004 07:13:32 -0000	1.4
+++ test_web.py	14 Oct 2004 16:47:32 -0000	1.5
@@ -8,6 +8,7 @@
 dr = unittest.deferredResult
 
 from twisted.internet import reactor
+from twisted.internet.interfaces import IReactorUNIX
 from twisted.web import client
 
 from buildbot import master, interfaces
@@ -84,6 +85,9 @@
 
     def test_webPathname(self):
         # running a t.web.distrib server over a UNIX socket
+        if not components.implements(reactor, IReactorUNIX):
+            raise unittest.SkipTest("UNIX sockets not supported here")
+
         cfg = config1 % {'k': 'webPathname',
                          'v': "'.web-pb'"}
 





More information about the Commits mailing list