| Server IP : 217.160.0.135 / Your IP : 216.73.216.73 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/zmq/tests/ |
Upload File : |
# Copyright (c) PyZMQ Developers.
# Distributed under the terms of the Modified BSD License.
from pytest import mark
import zmq
only_bundled = mark.skipif(not hasattr(zmq, '_libzmq'), reason="bundled libzmq")
@mark.skipif('zmq.zmq_version_info() < (4, 1)')
def test_has():
assert not zmq.has('something weird')
@only_bundled
def test_has_curve():
"""bundled libzmq has curve support"""
assert zmq.has('curve')
@only_bundled
def test_has_ipc():
"""bundled libzmq has ipc support"""
assert zmq.has('ipc')