|
|
8c26ee5 |
From b9cc1b4832f4ebdc644a5aa2cf02e4ac40c56451 Mon Sep 17 00:00:00 2001
|
|
|
8fed7a8 |
From: Ralph Bean <rbean@redhat.com>
|
|
|
8c26ee5 |
Date: Tue, 28 Jan 2014 16:18:17 -0500
|
|
|
8c26ee5 |
Subject: [PATCH] Disable epgm test
|
|
|
8fed7a8 |
|
|
|
8fed7a8 |
---
|
|
|
8c26ee5 |
txzmq/test/test_pubsub.py | 26 --------------------------
|
|
|
8c26ee5 |
1 file changed, 26 deletions(-)
|
|
|
8fed7a8 |
|
|
|
8fed7a8 |
diff --git a/txzmq/test/test_pubsub.py b/txzmq/test/test_pubsub.py
|
|
|
8c26ee5 |
index 86a0238..f2fb12e 100644
|
|
|
8fed7a8 |
--- a/txzmq/test/test_pubsub.py
|
|
|
8fed7a8 |
+++ b/txzmq/test/test_pubsub.py
|
|
|
8c26ee5 |
@@ -19,21 +19,6 @@ class ZmqTestSubConnection(ZmqSubConnection):
|
|
|
8fed7a8 |
self.messages.append([tag, message])
|
|
|
8fed7a8 |
|
|
|
8fed7a8 |
|
|
|
8fed7a8 |
-def _detect_epgm():
|
|
|
8fed7a8 |
- """
|
|
|
8fed7a8 |
- Utility function to test for presence of epgm:// in zeromq.
|
|
|
8fed7a8 |
- """
|
|
|
8fed7a8 |
- import zmq
|
|
|
8fed7a8 |
-
|
|
|
8fed7a8 |
- context = zmq.Context()
|
|
|
8c26ee5 |
- socket = zmq.Socket(context, zmq.constants.PUB)
|
|
|
8fed7a8 |
-
|
|
|
8fed7a8 |
- try:
|
|
|
8fed7a8 |
- socket.bind("epgm://127.0.0.1;239.192.1.1:5557")
|
|
|
8fed7a8 |
-
|
|
|
8fed7a8 |
- return True
|
|
|
cd301b1 |
- except ZMQError:
|
|
|
8fed7a8 |
- return False
|
|
|
8c26ee5 |
|
|
|
8c26ee5 |
|
|
|
8fed7a8 |
class ZmqConnectionTestCase(unittest.TestCase):
|
|
|
8c26ee5 |
@@ -81,14 +66,6 @@ class ZmqConnectionTestCase(unittest.TestCase):
|
|
|
3eb33f4 |
return _wait(0.01).addCallback(publish) \
|
|
|
3eb33f4 |
.addCallback(lambda _: _wait(0.01)).addCallback(check)
|
|
|
8fed7a8 |
|
|
|
8fed7a8 |
- def test_send_recv_pgm(self):
|
|
|
8fed7a8 |
- r = ZmqTestSubConnection(self.factory, ZmqEndpoint(
|
|
|
8fed7a8 |
- ZmqEndpointType.bind, "epgm://127.0.0.1;239.192.1.1:5556"))
|
|
|
8fed7a8 |
-
|
|
|
8fed7a8 |
- s = ZmqPubConnection(self.factory, ZmqEndpoint(
|
|
|
8fed7a8 |
- ZmqEndpointType.connect, "epgm://127.0.0.1;239.192.1.1:5556"))
|
|
|
8fed7a8 |
-
|
|
|
8fed7a8 |
- r.subscribe('tag')
|
|
|
8c26ee5 |
|
|
|
8c26ee5 |
def publish(ignore):
|
|
|
8c26ee5 |
s.publish('xyz', 'different-tag')
|
|
|
8c26ee5 |
@@ -130,6 +107,3 @@ class ZmqConnectionTestCase(unittest.TestCase):
|
|
|
8fed7a8 |
|
|
|
3eb33f4 |
return _wait(0.1).addCallback(publish) \
|
|
|
3eb33f4 |
.addCallback(lambda _: _wait(0.1)).addCallback(check)
|
|
|
8fed7a8 |
-
|
|
|
8fed7a8 |
- if not _detect_epgm():
|
|
|
8fed7a8 |
- test_send_recv_pgm.skip = "epgm:// not available"
|
|
|
8fed7a8 |
--
|
|
|
8c26ee5 |
1.8.5.3
|
|
|
8fed7a8 |
|