##// END OF EJS Templates
Another go at fixing tests on Python 2
Thomas Kluyver -
Show More
@@ -456,7 +456,9 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('%s.input' % py3compat.builtin_mod_name, mock_input)
459 input_name = '%s.%s' % (py3compat.builtin_mod_name,
460 'input' if py3compat.PY3 else 'raw_input')
461 return patch(input_name, mock_input)
460
462
461 def help_output_test(subcommand=''):
463 def help_output_test(subcommand=''):
462 """test that `ipython [subcommand] -h` works"""
464 """test that `ipython [subcommand] -h` works"""
General Comments 0
You need to be logged in to leave comments. Login now