test_runner.py: skip the start/stop test when sys.platform is win32/cygwin.

The previous twisted.python.runtime.platformType approach didn't catch cygwin
for some reason.
This commit is contained in:
Brian Warner 2007-09-17 21:56:08 -07:00
parent f72ef4d8f9
commit 645927ca73

View File

@ -1,11 +1,10 @@
from twisted.trial import unittest
from twisted.python.runtime import platformType
import time
from cStringIO import StringIO
from twisted.python import usage
import os.path
import sys, os.path
from allmydata.scripts import runner, debug
from allmydata.util import fileutil
@ -107,7 +106,9 @@ class RunNode(unittest.TestCase):
return basedir
def test_client(self):
if platformType == "win32":
if sys.platform in ("win32", "cygwin"):
# thus might not be entirely true, but I've yet to see proper
# daemonization on a windows box. -warner
raise unittest.SkipTest("twistd does not fork under windows")
basedir = self.workdir("test_client")
c1 = os.path.join(basedir, "c1")