diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index 7a63789fb7..d8b1b93613 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -163,3 +163,8 @@ jobs: - bash: image_tests/bin/python -m unittest discover -v test/ipynb displayName: 'Run image test' + env: + # Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to + # a new internal interface that will be the default in jupyter-core 6.x. + # This variable should become redundant on release of jupyter-core 6. + JUPYTER_PLATFORM_DIRS: 1 diff --git a/constraints.txt b/constraints.txt index 885964e778..852c3bbc40 100644 --- a/constraints.txt +++ b/constraints.txt @@ -1,12 +1,3 @@ # jsonschema pinning needed due nbformat==5.1.3 using deprecated behaviour in # 4.0+. The pin can be removed after nbformat is updated. jsonschema==3.2.0 - -# jupyter-core 5.0.0 started emitting deprecation warnings with ipywidgets via -# a seaborn import. This pin can be removed when compatibility with those -# packages is fixed -jupyter-core==4.11.2 - -# ipywidgets 8.0.3 started emitting deprecation warnings via a seaborn import. -# This pin can be removed when compatibility with those packages is fixed. -ipywidgets<8.0.3 diff --git a/qiskit/test/base.py b/qiskit/test/base.py index 7a3b8146ae..3b6853f4a0 100644 --- a/qiskit/test/base.py +++ b/qiskit/test/base.py @@ -216,13 +216,13 @@ class QiskitTestCase(BaseQiskitTestCase): r"Back-references to from Bit instances.*", r"The CXDirection pass has been deprecated", r"The pauli_basis function with PauliTable.*", - # TODO: remove the following ignore after seaborn 0.12.0 releases - r"distutils Version classes are deprecated. Use packaging\.version", - # Internal deprecation warning emitted by jupyter client when - # calling nbconvert in python 3.10 - r"There is no current event loop", # Caused by internal scikit-learn scipy usage r"The 'sym_pos' keyword is deprecated and should be replaced by using", + # jupyter_client 7.4.8 uses deprecated shims in pyzmq that raise warnings with pyzmq 25. + # These are due to be fixed by jupyter_client 8, see: + # - https://github.com/jupyter/jupyter_client/issues/913 + # - https://github.com/jupyter/jupyter_client/pull/842 + r"zmq\.eventloop\.ioloop is deprecated in pyzmq .*", ] for msg in allow_DeprecationWarning_message: warnings.filterwarnings("default", category=DeprecationWarning, message=msg)