Skip to content

Commit 02bdfe2

Browse files
committed
ruff!
1 parent f210aac commit 02bdfe2

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

tests/runners.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@
66
import termios
77
import threading
88
import types
9-
from io import StringIO
10-
from io import BytesIO
9+
from io import BytesIO, StringIO
1110
from 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+
)
1322
from pytest import raises, skip
1423
from pytest_relaxed import trap
15-
from unittest.mock import patch, Mock, call
1624

1725
from invoke import (
1826
CommandTimedOut,
@@ -33,16 +41,6 @@
3341
from invoke.runners import default_encoding
3442
from 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

4745
class _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

0 commit comments

Comments
 (0)