diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-09-08 14:26:52 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-09-08 14:27:21 -0700 |
commit | 8b0e10df60bb8e3fac8f81959d7f3f39a8d0e000 (patch) | |
tree | 4e0766b74d7688624f21766f2be0ff5d8e9cfae1 /tests/test_file.py | |
parent | b0ffd7c9c8d0941ee95e6f133cb6697bfb6a9b99 (diff) | |
parent | 24e022bdf656f272b4dafb76df1a7739965be2f9 (diff) |
Merge branch 'master' into 372-int
Conflicts:
paramiko/channel.py
tests/test_util.py
Diffstat (limited to 'tests/test_file.py')
-rwxr-xr-x | tests/test_file.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_file.py b/tests/test_file.py index c6edd7af..22a34aca 100755 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -23,6 +23,7 @@ Some unit tests for the BufferedFile abstraction. import unittest from paramiko.file import BufferedFile from paramiko.common import linefeed_byte, crlf, cr_byte +import sys class LoopbackFile (BufferedFile): @@ -151,6 +152,15 @@ class BufferedFileTest (unittest.TestCase): b'need to close them again.\n') f.close() + def test_8_buffering(self): + """ + verify that buffered objects can be written + """ + if sys.version_info[0] == 2: + f = LoopbackFile('r+', 16) + f.write(buffer(b'Too small.')) + f.close() + if __name__ == '__main__': from unittest import main main() |