From 298a52dc64e442c10763b523e8309ad2917a740c 2021-11-20 23:35:43 From: Nikita Kniazev Date: 2021-11-20 23:35:43 Subject: [PATCH] test_inputsplitter: suppress self-deprecation warning --- diff --git a/IPython/core/tests/test_inputsplitter.py b/IPython/core/tests/test_inputsplitter.py index 46c804a..0b0a15c 100644 --- a/IPython/core/tests/test_inputsplitter.py +++ b/IPython/core/tests/test_inputsplitter.py @@ -6,9 +6,11 @@ # Distributed under the terms of the Modified BSD License. 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