##// END OF EJS Templates
Fix builtins module name for Python 2
Thomas Kluyver -
Show More
@@ -456,7 +456,7 b' def fake_input(inputs):'
456 except StopIteration:
456 except StopIteration:
457 raise EOFError('No more inputs given')
457 raise EOFError('No more inputs given')
458
458
459 return patch('builtins.input', mock_input)
459 return patch('%s.input' % py3compat.builtin_mod_name, mock_input)
460
460
461 def help_output_test(subcommand=''):
461 def help_output_test(subcommand=''):
462 """test that `ipython [subcommand] -h` works"""
462 """test that `ipython [subcommand] -h` works"""
General Comments 0
You need to be logged in to leave comments. Login now