diff options
Diffstat (limited to 'util/ec3po/console_unittest.py')
-rwxr-xr-x | util/ec3po/console_unittest.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/util/ec3po/console_unittest.py b/util/ec3po/console_unittest.py index 1e9dae9efd..22d468263b 100755 --- a/util/ec3po/console_unittest.py +++ b/util/ec3po/console_unittest.py @@ -11,12 +11,12 @@ import binascii # pylint: disable=cros-logging-import import logging import mock -import multiprocessing import tempfile import unittest import console import interpreter +import threadproc_shim ESC_STRING = chr(console.ControlKey.ESC) @@ -238,7 +238,7 @@ class TestConsoleEditingMethods(unittest.TestCase): # Create some dummy pipes. These won't be used since we'll mock out sends # to the interpreter. - dummy_pipe_end_0, dummy_pipe_end_1 = multiprocessing.Pipe() + dummy_pipe_end_0, dummy_pipe_end_1 = threadproc_shim.Pipe() self.console = console.Console(self.tempfile.fileno(), self.tempfile, tempfile.TemporaryFile(), dummy_pipe_end_0, dummy_pipe_end_1) @@ -250,9 +250,6 @@ class TestConsoleEditingMethods(unittest.TestCase): self.console.enhanced_ec = True self.console.CheckForEnhancedECImage = mock.MagicMock(return_value=True) - # Mock out sends to the interpreter. - multiprocessing.Pipe.send = mock.MagicMock() - def test_EnteringChars(self): """Verify that characters are echoed onto the console.""" test_str = 'abc' |