From 645927ca730f77bcc4fc2f61ab2e0062d0c3df88 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 17 Sep 2007 21:56:08 -0700 Subject: [PATCH] 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. --- src/allmydata/test/test_runner.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/test_runner.py b/src/allmydata/test/test_runner.py index 8696e8c6a..3e7c88bf5 100644 --- a/src/allmydata/test/test_runner.py +++ b/src/allmydata/test/test_runner.py @@ -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")