[Zope3-dev] Zope3 trunk degenerating on Windows

Tim Peters tim.peters at gmail.com
Mon Oct 10 10:28:33 EDT 2005


I'll attach a (long) list of current errors.  Most seem related to
twisted, and may ultimately stem from that there is no fcntl module on
Windows.

The buildbot hasn't been of any help here, since the Windows box has
failed during its initial svn step non-stop since last Friday:

    http://buildbot.zope.org/

where every run on "Windows 2000 fred-win" dies in its checkout step with

    Failure: exceptions.AttributeError: ShellCommand instance has no
    attribute 'commandFailed'

The

    Failure in test doctest_RecordingProtocol (zope.app.recorder.tests)

looks unrelated to twisted; I'll take a look.

The profiling.txt failure is (still) due to using a Windows-buggy
snapshot of zope.testing.

I see the "new" functional-test warning

    RuntimeWarning: PyCrypto not installed, but continuing anyways!

on Linux too.  Is installing PyCrypto now a prerequisite for Zope3?
-------------- next part --------------
C:\Code\Zope3>\python24\python.exe test.py -v --all "!(ZODB|ZEO)"
Configuration file found.
Running UNIT tests at all levels
Running UNIT tests from C:\Code\Zope3
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
....................................................

Failure in test doctest_RecordingProtocol (zope.app.recorder.tests)
Traceback (most recent call last):
  File "C:\Python24\lib\unittest.py", line 260, in run
    testMethod()
  File "C:\Code\Zope3\src\zope\testing\doctest.py", line 2193, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
DocTestFailureException: Failed doctest test for zope.app.recorder.tests.doctest_RecordingProtocol
  File "C:\Code\Zope3\src\zope\app\recorder\tests.py", line 31, in doctest_RecordingProtocol

----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\recorder\tests.py", line 92, in zope.app.recorder.tests.doctest_RecordingProtocol
Failed example:
    rq.timestamp < time.time()
Expected:
    True
Got:
    False


........................................................................................................................
........................................................................................................................
........................................................................................................................
................................................................................

Failure in test C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt
Traceback (most recent call last):
  File "C:\Python24\lib\unittest.py", line 260, in run
    testMethod()
  File "C:\Code\Zope3\src\zope\testing\doctest.py", line 2193, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
DocTestFailureException: Failed doctest test for log.txt
  File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 0

----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 40, in log.txt
Failed example:
    from twisted.web2 import http, http_headers, iweb, channel
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[14]>", line 1, in ?
        from twisted.web2 import http, http_headers, iweb, channel
      File "C:\Code\Zope3\src\twisted\web2\channel\__init__.py", line 7, in ?
        from twisted.web2.channel.cgi import startCGI
      File "C:\Code\Zope3\src\twisted\web2\channel\cgi.py", line 9, in ?
        from twisted.internet import process, error, interfaces, fdesc
      File "C:\Code\Zope3\src\twisted\internet\process.py", line 34, in ?
        import abstract, fdesc, error
      File "C:\Code\Zope3\src\twisted\internet\fdesc.py", line 15, in ?
        import fcntl
    ImportError: No module named fcntl
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 50, in log.txt
Failed example:
    class TestHTTPChannel(channel.http.HTTPChannelRequest):
        def getRemoteHost(self):
            return type('TestRemoteHost', (), {'host': '127.0.0.1'})
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[17]>", line 1, in ?
        class TestHTTPChannel(channel.http.HTTPChannelRequest):
    NameError: name 'channel' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 54, in log.txt
Failed example:
    chanRequest = TestHTTPChannel(None, 'GET /index.html HTTP/1.1', 1)
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[18]>", line 1, in ?
        chanRequest = TestHTTPChannel(None, 'GET /index.html HTTP/1.1', 1)
    NameError: name 'TestHTTPChannel' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 55, in log.txt
Failed example:
    request = http.Request(chanRequest, 'GET', '/index.html', (1, 1),
                           http_headers.Headers())
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[19]>", line 1, in ?
        request = http.Request(chanRequest, 'GET', '/index.html', (1, 1),
    NameError: name 'http' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 58, in log.txt
Failed example:
    response = http.Response()
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[20]>", line 1, in ?
        response = http.Response()
    NameError: name 'http' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 59, in log.txt
Failed example:
    response.headers.setHeader('date', 1120000000)
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[21]>", line 1, in ?
        response.headers.setHeader('date', 1120000000)
    NameError: name 'response' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 70, in log.txt
Failed example:
    eventDict = {'interface': iweb.IRequest,
                 'request': request, 'response': response,
                 'context': FauxContext()}
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[25]>", line 1, in ?
        eventDict = {'interface': iweb.IRequest,
    NameError: name 'iweb' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 76, in log.txt
Failed example:
    twisted.python.log.msg(**eventDict)
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[26]>", line 1, in ?
        twisted.python.log.msg(**eventDict)
    NameError: name 'eventDict' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 77, in log.txt
Failed example:
    print logfile.getvalue() #doctest: +ELLIPSIS
Expected:
    127.0.0.1 - - [2.../Jun/2005:...] "GET /index.html HTTP/1.1" 200 300 "-" "-"
    <BLANKLINE>
Got:
    <BLANKLINE>
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 86, in log.txt
Failed example:
    request.headers.setHeader('referer', 'http://localhost:8080/manage')
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[30]>", line 1, in ?
        request.headers.setHeader('referer', 'http://localhost:8080/manage')
    NameError: name 'request' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 87, in log.txt
Failed example:
    request.headers.setHeader('user-agent', 'Mozilla 1.7')
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[31]>", line 1, in ?
        request.headers.setHeader('user-agent', 'Mozilla 1.7')
    NameError: name 'request' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 89, in log.txt
Failed example:
    twisted.python.log.msg(**eventDict)
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest log.txt[32]>", line 1, in ?
        twisted.python.log.msg(**eventDict)
    NameError: name 'eventDict' is not defined
----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\app\twisted\tests\..\log.txt", line 90, in log.txt
Failed example:
    print logfile.getvalue() #doctest: +ELLIPSIS
Expected:
    127.0.0.1 - - [2.../Jun/2005:...] "GET /index.html HTTP/1.1" 200 300
    "http://localhost:8080/manage" "Mozilla 1.7"
    <BLANKLINE>
Got:
    <BLANKLINE>


........................................................................................................................
........................................................................................................................
...................................................
running on Windows, diff3 tests in zope.fssync.tests.test_fsmerger disabled
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
....................................................

Error in test testRead (zope.publisher.tests.test_http.HTTPInputStreamTests)
Traceback (most recent call last):
  File "C:\Python24\lib\unittest.py", line 260, in run
    testMethod()
  File "C:\Code\Zope3\src\zope\publisher\tests\test_http.py", line 72, in testRead
    output += self.stream.read()
  File "C:\Code\Zope3\src\zope\publisher\http.py", line 192, in read
    self.cacheStream.write(data)
IOError: (0, 'Error')



Error in test testReadLine (zope.publisher.tests.test_http.HTTPInputStreamTests)
Traceback (most recent call last):
  File "C:\Python24\lib\unittest.py", line 260, in run
    testMethod()
  File "C:\Code\Zope3\src\zope\publisher\tests\test_http.py", line 79, in testReadLine
    output += self.stream.readline()
  File "C:\Code\Zope3\src\zope\publisher\http.py", line 197, in readline
    self.cacheStream.write(data)
IOError: (0, 'Error')



Error in test testReadLines (zope.publisher.tests.test_http.HTTPInputStreamTests)
Traceback (most recent call last):
  File "C:\Python24\lib\unittest.py", line 260, in run
    testMethod()
  File "C:\Code\Zope3\src\zope\publisher\tests\test_http.py", line 90, in testReadLines
    output += ''.join(self.stream.readlines())
  File "C:\Code\Zope3\src\zope\publisher\http.py", line 202, in readlines
    self.cacheStream.write(''.join(data))
IOError: (0, 'Error')

........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
...........................................................

Failure in test C:\Code\Zope3\src\zope\testing\profiling.txt
Traceback (most recent call last):
  File "C:\Python24\lib\unittest.py", line 260, in run
    testMethod()
  File "C:\Code\Zope3\src\zope\testing\doctest.py", line 2193, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
DocTestFailureException: Failed doctest test for profiling.txt
  File "C:\Code\Zope3\src\zope\testing\profiling.txt", line 0

----------------------------------------------------------------------
File "C:\Code\Zope3\src\zope\testing\profiling.txt", line 35, in profiling.txt
Failed example:
    testrunner.run(defaults)
Exception raised:
    Traceback (most recent call last):
      File "C:\Code\Zope3\src\zope\testing\doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
      File "<doctest profiling.txt[8]>", line 1, in ?
        testrunner.run(defaults)
      File "C:\Code\Zope3\src\zope\testing\testrunner.py", line 186, in run
        os.unlink(file_name)
    OSError: [Errno 13] Permission denied: 'tests_profile.tu5lhw.prof'


.................................................................-------------------------------------------------------
---------------
Ran 7731 tests in 205.781s

FAILED (failures=3, errors=3)
Running FUNCTIONAL tests at all levels
Running FUNCTIONAL tests from C:\Code\Zope3
Parsing ftesting.zcml
...........C:\Code\Zope3\src\twisted\conch\ssh\common.py:20: RuntimeWarning: PyCrypto not installed, but continuing anyways!
  RuntimeWarning)
........................................................................................................................
......................................................................................The following test left garbage:
C:\Code\Zope3\src\zwiki\browser\browser.txt
[<socket._fileobject object at 0x07B83768>]
----------------------------------------------------------------------
Ran 466 tests in 122.672s

OK


More information about the Zope3-dev mailing list