Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
adaptive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Quantum Tinkerer
adaptive
Commits
7f936b7c
Commit
7f936b7c
authored
6 years ago
by
Bas Nijholt
Browse files
Options
Downloads
Patches
Plain Diff
test private attribute used in 'live_info'
parent
243561d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!108
exponentially decay message frequency in live_info
Pipeline
#12970
passed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
adaptive/tests/test_notebook_integration.py
+15
-0
15 additions, 0 deletions
adaptive/tests/test_notebook_integration.py
with
15 additions
and
0 deletions
adaptive/tests/test_notebook_integration.py
0 → 100644
+
15
−
0
View file @
7f936b7c
# -*- 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
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment