diff options
| author | Kevin Brown <kevin@kevinbrown.in> | 2014-07-13 21:49:51 -0400 |
|---|---|---|
| committer | Kevin Brown <kevin@kevinbrown.in> | 2014-07-13 21:49:51 -0400 |
| commit | 087803ee30456c4942d9c18d82c1d686eb081a27 (patch) | |
| tree | fe2fa42285eb0e091a9b3cd895c1801df51ec10d /gitdb/test/test_stream.py | |
| parent | a19a169ffd81e21f472dee8a9a38ac1c9fab9bd7 (diff) | |
| download | gitdb-087803ee30456c4942d9c18d82c1d686eb081a27.tar.gz | |
Making a bit of progress...
This changes the internals to use BytesIO over StringIO, which
fixed a few of the failing tests in Python 3. We are only
importing from `io` now, instead of the entire chain, as this is
available in Python 2.6+.
Diffstat (limited to 'gitdb/test/test_stream.py')
| -rw-r--r-- | gitdb/test/test_stream.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitdb/test/test_stream.py b/gitdb/test/test_stream.py index f409f17..92755d9 100644 --- a/gitdb/test/test_stream.py +++ b/gitdb/test/test_stream.py @@ -82,9 +82,9 @@ class TestStream(TestBase): if with_size: # need object data zdata = zlib.compress(make_object(str_blob_type, cdata)) - type, size, reader = DecompressMemMapReader.new(zdata, close_on_deletion) + typ, size, reader = DecompressMemMapReader.new(zdata, close_on_deletion) assert size == len(cdata) - assert type == str_blob_type + assert typ == str_blob_type # even if we don't set the size, it will be set automatically on first read test_reader = DecompressMemMapReader(zdata, close_on_deletion=False) |
