'Run the test suite with py.test'

def run(self):

    try:
        import zmq
    except ImportError:
        print_exc()
        fatal('\n                            '.join(['Could    not    import    zmq!', "You    must    build    pyzmq    with    'python    setup.py    build_ext    --inplace'    for    'python    setup.py    test'    to    work.", 'If    you    did    build    pyzmq    in-place,    then    this    is    a    real    error.']))
        sys.exit(1)
    info(('Testing    pyzmq-%s    with    libzmq-%s' % (zmq.pyzmq_version(), zmq.zmq_version())))
    p = Popen([sys.executable, '-m', 'pytest', '-v', os.path.join('zmq', 'tests')])
    p.wait()
    sys.exit(p.returncode)
