File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import termios
77import threading
88import types
9- from io import StringIO
10- from io import BytesIO
9+ from io import BytesIO , StringIO
1110from itertools import chain , repeat
11+ from unittest .mock import Mock , call , patch
1212
13+ from _util import (
14+ OhNoz ,
15+ _ ,
16+ _Dummy ,
17+ _KeyboardInterruptingRunner ,
18+ mock_pty ,
19+ mock_subprocess ,
20+ skip_if_windows ,
21+ )
1322from pytest import raises , skip
1423from pytest_relaxed import trap
15- from unittest .mock import patch , Mock , call
1624
1725from invoke import (
1826 CommandTimedOut ,
3341from invoke .runners import default_encoding
3442from invoke .terminals import WINDOWS
3543
36- from _util import (
37- mock_subprocess ,
38- mock_pty ,
39- skip_if_windows ,
40- _Dummy ,
41- _KeyboardInterruptingRunner ,
42- OhNoz ,
43- _ ,
44- )
45-
4644
4745class _RaisingWatcher (StreamWatcher ):
4846 def submit (self , stream ):
@@ -573,7 +571,8 @@ class MockedHandleStdin(_Dummy):
573571
574572 MockedHandleStdin .handle_stdin = Mock ()
575573 self ._runner (klass = MockedHandleStdin ).run (
576- _ , in_stream = False # vs None or a stream
574+ _ ,
575+ in_stream = False , # vs None or a stream
577576 )
578577 assert not MockedHandleStdin .handle_stdin .called
579578
You can’t perform that action at this time.
0 commit comments