Skip to content
Snippets Groups Projects
Commit 7f936b7c authored by Bas Nijholt's avatar Bas Nijholt
Browse files

test private attribute used in 'live_info'

parent 243561d6
No related branches found
No related tags found
1 merge request!108exponentially decay message frequency in live_info
Pipeline #12970 passed
# -*- coding: utf-8 -*-
import ipykernel.iostream
import zmq
def test_private_api_used_in_live_info():
"""We are catching all errors in
adaptive.notebook_integration.should_update
so if ipykernel changed its API it would happen unnoticed."""
# XXX: find a potential better solution in
# https://github.com/ipython/ipykernel/issues/365
ctx = zmq.Context()
iopub_socket = ctx.socket(zmq.PUB)
iopub_thread = ipykernel.iostream.IOPubThread(iopub_socket)
assert hasattr(iopub_thread, '_events')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment