From b7f20475905c16160c2e9e6ccbce817a0f1c3493 2021-11-23 19:01:52 From: Matthias Bussonnier Date: 2021-11-23 19:01:52 Subject: [PATCH] Merge pull request #13310 from Kojoley/suppress-deprecation-from-inputsplitter test_inputsplitter: suppress self-deprecation warning --- diff --git a/IPython/core/tests/test_inputsplitter.py b/IPython/core/tests/test_inputsplitter.py index ec000a2..5a22895 100644 --- a/IPython/core/tests/test_inputsplitter.py +++ b/IPython/core/tests/test_inputsplitter.py @@ -9,7 +9,8 @@ import unittest import pytest import sys -from IPython.core import inputsplitter as isp +with pytest.warns(DeprecationWarning, match="inputsplitter"): + from IPython.core import inputsplitter as isp from IPython.core.inputtransformer import InputTransformer from IPython.core.tests.test_inputtransformer import syntax, syntax_ml from IPython.testing import tools as tt