[zeromq-dev] pyzmq 14.3.1 test failure

Greg Ward greg at gerg.ca
Tue Jul 29 15:52:30 CEST 2014


Hey folks --

I'm trying to build pyzmq 14.3.1, but getting a couple of test
failures. One is intermittent, but the other seems to happen every
time (except when the tests crash early because of the intermittent
failure).

This is on Scientific Linux 6.5, 64-bit Intel, using the OS RPM
python-2.6.6-52.el6.x86_64 and a locally built zeromq 4.0.4 RPM.

I don't need a complex build environment to reproduce this, just:

  $ tar -xzf pyzmq-14.3.1.tar.gz
  $ cd pyzmq-14.3.1
  $ python setup.py build_ext --inplace
  $ python setup.py test

Here is the failure that happens every time:

'''
threaded auth - NULL ... FAIL

======================================================================
FAIL: threaded auth - NULL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pyzmq-14.3.1/zmq/tests/test_auth.py", line 127, in test_null
    self.assertTrue(self.can_connect(server, client))
AssertionError: 
-------------------- >> begin captured logging << --------------------
zmq.auth: DEBUG: auth received API command 'TERMINATE'
--------------------- >> end captured logging << ---------------------
'''

Here is the intermittent one (seems to happen ~20% of the time):

'''
test_blacklist (zmq.tests.test_auth.TestIOLoopAuthentication) ... ERROR

======================================================================
ERROR: test_blacklist (zmq.tests.test_auth.TestIOLoopAuthentication)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pyzmq-14.3.1/zmq/tests/test_auth.py", line 292, in tearDown
    super(TestIOLoopAuthentication, self).tearDown()
  File "/tmp/pyzmq-14.3.1/zmq/tests/test_auth.py", line 42, in tearDown
    super(BaseAuthTestCase, self).tearDown()
  File "/tmp/pyzmq-14.3.1/zmq/tests/__init__.py", line 103, in tearDown
    raise RuntimeError("context could not terminate, open sockets likely remain in test")
RuntimeError: context could not terminate, open sockets likely remain in test
-------------------- >> begin captured logging << --------------------
zmq.auth: DEBUG: version: '1.0', request_id: '1', domain: u'global', address: u'127.0.0.1', identity: '', mechanism: 'NULL'
zmq.auth: DEBUG: DENIED (blacklist) address=127.0.0.1
zmq.auth: DEBUG: ZAP reply code=400 text=Address is blacklisted
--------------------- >> end captured logging << ---------------------
'''

Any ideas what's going wrong here? Thanks --

Greg



More information about the zeromq-dev mailing list