[ZCM] [ZC] 1541/ 3 Assign "Python 2.4/Zope 2.7.3: unittests fail In LoopCallback.py"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Oct 18 12:38:29 EDT 2004


Issue #1541 Update (Assign) "Python 2.4/Zope 2.7.3: unittests fail In LoopCallback.py"
 Status Accepted, Zope/bug low
To followup, visit:
  http://collector.zope.org/Zope/1541

==============================================================
= Assign - Entry #3 by tim_one on Oct 18, 2004 12:38 pm

 Status: Pending => Accepted

 Supporters added: tim_one

Assigned to me.  Turns out Jeremy fixed this in ZODB 3.3 long ago (part of ZEO is abusing asyncore's socket_map in a way that "didn't matter" before).

His checkin comment noted that the relevant change to Python's asyncore will also show up in Python 2.3.5 (if that's ever released).  If so, the same failures will occur with 2.3.5.
________________________________________
= Comment - Entry #2 by tim_one on Oct 18, 2004 10:54 am

On Windows the error msg is a bit different:

select.error: (10038, 'An operation was attempted on something that is not a socket')

Looks like these come out of two related tests:

   testNOK (ZEO.tests.testAuth.PlainTextAuth)
   testNOK (ZEO.tests.testAuth.DigestAuth)

Curiously, the same tests pass on Zope 2.8 trunk under 2.4, and in Zope3 under 2.4.

Unfortunately, I have no idea what those tests do.  Possibly relevant is that 2.4's asyncore is less tolerant of leaving garbage in its socket_map (like closed sockets).
________________________________________
= Request - Entry #1 by ajung on Oct 18, 2004 11:18 am

Zope 2.7.3 + Python 2.4 fails when running the unittests:

EETraceback (most recent call last):
  File "/develop/sandboxes/Zope-2_7-branch/Zope/lib/python/ZEO/tests/zeoserver.py", line 216, in ?
    main()
  File "/develop/sandboxes/Zope-2_7-branch/Zope/lib/python/ZEO/tests/zeoserver.py", line 212, in main
    ThreadedAsync.LoopCallback.loop()
  File "/develop/sandboxes/Zope-2_7-branch/Zope/lib/python/ThreadedAsync/LoopCallback.py", line 156, in loop
    poll_fun(timeout, map)
  File "/develop/sandboxes/Zope-2_7-branch/Zope/lib/python/ThreadedAsync/LoopCallback.py", line 108, in poll
    r, w, e = select.select(r, w, e, timeout)
select.error: (9, 'Bad file descriptor')
==============================================================



More information about the Zope-Collector-Monitor mailing list