Fix memoryview testing breakage of Python 2.6
@@ -99,7 +99,9 @@ def test_1(data, mode, store_size, c_return_bytearray, d_return_bytearray):
c = []
c += [lz4.block.compress(data, **kwargs)]
c += [lz4.block.compress(bytearray(data), **kwargs)]
+ if sys.version_info > (2, 7):
c += [lz4.block.compress(memoryview(data), **kwargs)]
+ c += [memoryview(c[0])]
c += [bytearray(c[0])] # should be redundant but belt and braces
assert (c.count(c[0]) == len(c)) # Check all list members equal
for cc in c:
