[Zope-Coders] failures on Zope-2_7-branch
Tim Peters
tim at zope.com
Tue Oct 14 10:58:16 EDT 2003
[Jeremy Hylton]
> When I run the tests -- Zope 2.7 branch, Python 2.3.2, RH9 -- I
> consistently see the following two failures. Does anyone know how to
> fix them? I looked into the DateIndex test once, several weeks ago,
> but I couldn't figure out what was going wrong.
> FAIL: checkStringExpressions
> (Products.PageTemplates.tests.testHTMLTests.HTMLTests)
> ----------------------------------------------------------------------
> ...
> File "/tmp/autotestRYDJUA/Zope/lib/python/Products/PageTemplates/
tests/util.py", line 88, in check_html
> assert s1==s2, "HTML Output Changed"
> AssertionError: HTML Output Changed
Fails the same way on Windows too. Has been going on for a long time.
Wrote it up for Fred weekend before last because I believe he's fixed the
same thing on a hundred <wink> other branches. If you dig back in your
output, I bet you'll find this additional info:
checkStringExpressions Products.PageTemplates.tests.testHTMLTests.HTMLTests)
...
6,7r6,7
< Error:x
< Error:x
---
> Error:'x'
> Error:'x'
The problem is that x has grown some single quotes.
> ======================================================================
> FAIL: test_retrieval
> (Products.PluginIndexes.DateIndex.tests.test_DateIndex.DI_Tests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/tmp/autotestRYDJUA/Zope/lib/python/Products/PluginIndexes/DateInde
> x/tests/test_DateIndex.py", line 131, in test_retrieval
> self._checkApply(self._min_req, values[3:6])
> File
> "/tmp/autotestRYDJUA/Zope/lib/python/Products/PluginIndexes/DateInde
> x/tests/test_DateIndex.py", line 75, in _checkApply
> '%s | %s' % (result, expectedValues))
> File "/usr/local/lib/python2.3/unittest.py", line 302, in
> failUnlessEqual
> raise self.failureException, \
> AssertionError: [3] | ((3,
> <Products.PluginIndexes.DateIndex.tests.test_DateIndex.Dummy instance
> at 0x41a47d8c>), (4,
> <Products.PluginIndexes.DateIndex.tests.test_DateIndex.Dummy instance
> at 0x41a47dfc>), (5,
> <Products.PluginIndexes.DateIndex.tests.test_DateIndex.Dummy instance
> at 0x41a47e6c>))
But that one always passes on Windows:
test_retrieval
(Products.PluginIndexes.DateIndex.tests.test_DateIndex.DI_Tests) ... ok
In return, this one always fails on Windows:
======================================================================
ERROR: testSetupServers (Zope.Startup.tests.testStarter.ZopeStarterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Code\Zope-2_7-branch\lib/python\Zope\Startup\tests\testStarter.py", line
194, in testSetupServers
self.assertRaises(ZConfig.ConfigurationError, starter.setupServers)
File "C:\PYTHON23\lib\unittest.py", line 289, in failUnlessRaises
callableObj(*args, **kwargs)
File "C:\Code\Zope-2_7-branch\lib/python\Zope\Startup\__init__.py", line
187, in setupServers
servers.append(server.create())
File "C:\Code\Zope-2_7-branch\lib/python\ZServer\datatypes.py", line 93,
in create
logger_object=access_logger)
File "C:\Code\Zope-2_7-branch\lib/python\ZServer\FTPServer.py", line 600,
in __init__
ftp_server.__init__(self, None, *args, **kw)
File "C:\Code\Zope-2_7-branch\lib/python\ZServer\medusa\ftp_server.py",
line 727, in __init__
self.bind ((self.ip, self.port))
File "C:\PYTHON23\lib\asyncore.py", line 300, in bind
return self.socket.bind(addr)
File "<string>", line 1, in bind
TypeError: an integer is required
I wrote that up weekend before last here, but nobody bit.
Under 2.2.3 on Windows, the checkStringExpressions failure goes away, but
testSetupServers fails the same way.
More information about the Zope-Coders
mailing list