diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 3800303..f17df37 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -99,7 +99,10 @@ def test_config_print_class(): _ip.magic('config TerminalInteractiveShell') stdout = captured.stdout - nt.assert_in("TerminalInteractiveShell options", stdout) + if not re.match("TerminalInteractiveShell.* options", stdout.splitlines()[0]): + print(stdout) + raise AssertionError("1st line of stdout not like " + "'TerminalInteractiveShell.* options'") def test_rehashx(): # clear up everything