first comit
This commit is contained in:
26
venv/lib/python3.10/site-packages/zmq/tests/test_etc.py
Normal file
26
venv/lib/python3.10/site-packages/zmq/tests/test_etc.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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')
|
||||
Reference in New Issue
Block a user