Commit f57229c5 authored by Tim Peters's avatar Tim Peters

test_fcgi_factory: Moved the failure on Windows from the bogus

        self.assertEqual(factory.host, '')

test to something else failing in

        self.check_prepare(factory)

The failure now is check_prepare's

   self.assertEqual(factory.host, "127.0.0.1")

factory.host is actually 'localhost' on Windows, but I don't understand
this test so am stopping now (and it still fails on Windows).
parent d9ca44c8
......@@ -25,6 +25,13 @@ import ZServer.datatypes
TEMPFILENAME = tempfile.mktemp()
# For address kinds of values that don't specify a hostname, ZConfig
# supplies a platform-dependent default.
import sys
DEFAULT_HOSTNAME = ''
if sys.platform in ['win32',]:
DEFAULT_HOSTNAME = 'localhost'
del sys
class BaseTest(unittest.TestCase):
schema = None
......@@ -135,7 +142,7 @@ class ZServerConfigurationTestCase(BaseTest):
""")
self.assert_(isinstance(factory,
ZServer.datatypes.FCGIServerFactory))
self.assertEqual(factory.host, '')
self.assertEqual(factory.host, DEFAULT_HOSTNAME)
self.assertEqual(factory.port, 83)
self.assertEqual(factory.path, None)
self.check_prepare(factory)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment