~ubuntu-branches/ubuntu/wily/pyzmq/wily

« back to all changes in this revision

Viewing changes to zmq/tests/__init__.py

  • Committer: Package Import Robot
  • Author(s): Debian Python Modules Team
  • Date: 2011-09-23 00:16:39 UTC
  • mto: (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: package-import@ubuntu.com-20110923001639-uraunwuq829z50ft
Tags: upstream-2.1.9
ImportĀ upstreamĀ versionĀ 2.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
#    Copyright (c) 2010 Brian E. Granger
 
2
#    Copyright (c) 2010-2011 Brian E. Granger & Min Ragan-Kelley
3
3
#
4
4
#    This file is part of pyzmq.
5
5
#
27
27
from unittest import TestCase
28
28
 
29
29
import zmq
 
30
from zmq.utils import jsonapi
30
31
 
31
32
try:
32
33
    from unittest import SkipTest
84
85
        return msg3
85
86
 
86
87
    def ping_pong_json(self, s1, s2, o):
 
88
        if jsonapi.jsonmod is None:
 
89
            raise SkipTest("No json library")
87
90
        s1.send_json(o)
88
91
        o2 = s2.recv_json()
89
92
        s2.send_json(o2)