~ubuntu-branches/ubuntu/precise/pyzmq/precise

« back to all changes in this revision

Viewing changes to zmq/tests/test_monqueue.py

  • Committer: Package Import Robot
  • Author(s): Debian Python Modules Team
  • Date: 2011-09-23 00:16:39 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: package-import@ubuntu.com-20110923001639-girjqodpb7uv17yu
Tags: 2.1.9-1
* New upstream version
  - should build on kFreeBSD without patches (Closes: #637777).
* Build-depend on zeromq 2.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
import zmq
28
28
from zmq import devices
29
29
from zmq.utils.strtypes import asbytes
30
 
from zmq.tests import BaseZMQTestCase
31
 
 
 
30
from zmq.tests import BaseZMQTestCase, SkipTest
32
31
 
33
32
#-----------------------------------------------------------------------------
34
33
# Tests
36
35
 
37
36
class TestMonitoredQueue(BaseZMQTestCase):
38
37
    sockets = []
39
 
    pass
40
38
    
41
39
    def build_device(self, mon_sub=asbytes(""), in_prefix=asbytes('in'), out_prefix=asbytes('out')):
 
40
        if zmq.zmq_version() >= '3':
 
41
            raise SkipTest("MonitoredQueues don't work reliably on libzmq >= 3.0.0")
42
42
        self.device = devices.ThreadMonitoredQueue(zmq.PAIR, zmq.PAIR, zmq.PUB,
43
43
                                            in_prefix, out_prefix)
44
44
        alice = self.context.socket(zmq.PAIR)