diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-06-14 21:20:16 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-14 21:20:16 -0400 |
commit | 8efb5a105d8b4ea93f92c0ed4a291e3f733fe4f5 (patch) | |
tree | 50bff3105e92363677d7ed02cf9e270b5d95691f | |
parent | 7f3851c0fac2705b713fb6882408aa03ec8f9eb7 (diff) |
Backported flake8 fix
-rw-r--r-- | tests/test_channelfile.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_channelfile.py b/tests/test_channelfile.py index 6faf8bf8..ffcbea3f 100644 --- a/tests/test_channelfile.py +++ b/tests/test_channelfile.py @@ -6,12 +6,12 @@ from paramiko import Channel, ChannelFile, ChannelStderrFile class TestChannelFile(object): @patch("paramiko.channel.ChannelFile._set_mode") def test_defaults_to_unbuffered_reading(self, setmode): - cf = ChannelFile(Channel(None)) + ChannelFile(Channel(None)) setmode.assert_called_once_with("r", -1) @patch("paramiko.channel.ChannelFile._set_mode") def test_can_override_mode_and_bufsize(self, setmode): - cf = ChannelFile(Channel(None), mode="w", bufsize=25) + ChannelFile(Channel(None), mode="w", bufsize=25) setmode.assert_called_once_with("w", 25) def test_read_recvs_from_channel(self): @@ -39,4 +39,3 @@ class TestChannelStderrFile(object): cf = ChannelStderrFile(chan, mode="w") cf.write("ohai") chan.sendall_stderr.assert_called_once_with(b"ohai") - |