diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-06-14 21:20:18 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-14 21:20:18 -0400 |
commit | a735de4aa7646657c42c82dc3a69786bafade812 (patch) | |
tree | 8bab278a10a3da6f7c088e1e4ad831784bf846af /tests | |
parent | e1fc86ac4f709a6128a83aebd31bc5c283a82fec (diff) | |
parent | 8efb5a105d8b4ea93f92c0ed4a291e3f733fe4f5 (diff) |
Merge branch '2.4' into 2.5
Diffstat (limited to 'tests')
-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") - |