Lines Matching defs:code
1 "Test InteractiveConsole and InteractiveInterpreter from code module"
10 code = import_helper.import_module('code')
16 self.console = code.InteractiveConsole()
24 self.infunc = stack.enter_context(mock.patch('code.input',
26 self.stdout = stack.enter_context(mock.patch('code.sys.stdout'))
27 self.stderr = stack.enter_context(mock.patch('code.sys.stderr'))
28 prepatch = mock.patch('code.sys', wraps=code.sys, spec=code.sys)