/opt/imh-python/lib/python3.9/site-packages/zmq/tests
NameSizeModeActions
asyncio/-0755rm
__pycache__/-0755rm
conftest.py3660644editdlrm
test_auth.py207120644editdlrm
test_cffi_backend.py94810644editdlrm
test_constants.py45700644editdlrm
test_context.py120270644editdlrm
test_cython.py10480644editdlrm
test_decorators.py94950644editdlrm
test_device.py61690644editdlrm
test_draft.py14710644editdlrm
test_error.py12600644editdlrm
test_etc.py5250644editdlrm
test_future.py111590644editdlrm
test_imports.py18050644editdlrm
test_includes.py10130644editdlrm
test_ioloop.py39650644editdlrm
test_log.py66970644editdlrm
test_message.py110910644editdlrm
test_monitor.py30440644editdlrm
test_monqueue.py82230644editdlrm
test_multipart.py9440644editdlrm
test_pair.py12600644editdlrm
test_poll.py72600644editdlrm
test_proxy_steerable.py39220644editdlrm
test_pubsub.py10890644editdlrm
test_reqrep.py18410644editdlrm
test_retry_eintr.py29600644editdlrm
test_security.py81410644editdlrm
test_socket.py216530644editdlrm
test_ssh.py2340644editdlrm
test_version.py13340644editdlrm
test_win32_shim.py17410644editdlrm
test_z85.py22320644editdlrm
test_zmqstream.py24390644editdlrm
__init__.py63820644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/zmq/tests/test_cython.py (1048B)
import os import sys import pytest import zmq @pytest.mark.skipif( 'zmq.backend.cython' not in sys.modules, reason="Requires cython backend" ) @pytest.mark.skipif( sys.platform.startswith('win'), reason="Don't try runtime Cython on Windows" ) @pytest.mark.parametrize('language_level', [3, 2]) def test_cython(language_level, request, tmpdir): import pyximport assert 'zmq.tests.cython_ext' not in sys.modules importers = pyximport.install( setup_args=dict(include_dirs=zmq.get_includes()), language_level=language_level, build_dir=str(tmpdir), ) cython_ext = None def unimport(): pyximport.uninstall(*importers) sys.modules.pop('zmq.tests.cython_ext', None) request.addfinalizer(unimport) # this import tests the compilation from . import cython_ext assert hasattr(cython_ext, 'send_recv_test') # call the compiled function # this shouldn't do much msg = b'my msg' received = cython_ext.send_recv_test(msg) assert received == msg