From efd702b8770b4ab4ba3551db9de913ac791d69da 2017-01-12 13:16:43 From: Thomas Kluyver Date: 2017-01-12 13:16:43 Subject: [PATCH] Fix builtins module name for Python 2 --- diff --git a/IPython/testing/tools.py b/IPython/testing/tools.py index 36cb102..2a975ec 100644 --- a/IPython/testing/tools.py +++ b/IPython/testing/tools.py @@ -456,7 +456,7 @@ def fake_input(inputs): except StopIteration: raise EOFError('No more inputs given') - return patch('builtins.input', mock_input) + return patch('%s.input' % py3compat.builtin_mod_name, mock_input) def help_output_test(subcommand=''): """test that `ipython [subcommand] -h` works"""