diff options
| author | Damien George | 2018-06-20 17:11:58 +1000 |
|---|---|---|
| committer | Damien George | 2018-06-27 16:55:05 +1000 |
| commit | 726804ea405483872ebc93772aea0ab0bfce0bcf (patch) | |
| tree | f3ee9544b5ea83dfa671e40a4341bf91524e785c /tests/io/bytesio_cow.py | |
| parent | bc6c56d75d1b954b42b01dc8e10e283523b2e902 (diff) | |
tests: Move non-filesystem io tests to basics dir with io_ prefix.
Diffstat (limited to 'tests/io/bytesio_cow.py')
| -rw-r--r-- | tests/io/bytesio_cow.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/io/bytesio_cow.py b/tests/io/bytesio_cow.py deleted file mode 100644 index 92654a000..000000000 --- a/tests/io/bytesio_cow.py +++ /dev/null @@ -1,20 +0,0 @@ -# Make sure that write operations on io.BytesIO don't -# change original object it was constructed from. -try: - import uio as io -except ImportError: - import io - -b = b"foobar" - -a = io.BytesIO(b) -a.write(b"1") -print(b) -print(a.getvalue()) - -b = bytearray(b"foobar") - -a = io.BytesIO(b) -a.write(b"1") -print(b) -print(a.getvalue()) |
