From fee8c7d38d72df564852a593822fe04687e1a415 2017-05-13 14:45:18 From: Thomas Kluyver Date: 2017-05-13 14:45:18 Subject: [PATCH] Fix test for changes in traitlets The output from '%config TerminalInteractiveShell' changed slightly, causing a spurious test failure on the jack-of-none builds on Jenkins. --- 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