Skip to content

Commit 802424a

Browse files
authored
Merge branch 'master' into msgpack-alimanfoo-20181106
2 parents 82c83b1 + b03531c commit 802424a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ matrix:
2323
install:
2424
- pip install -U tox-travis coveralls pip setuptools wheel
2525
- python setup.py build_ext --inplace
26-
- pip freeze
2726

2827
script:
2928
- tox

numcodecs/tests/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def check_backwards_compatibility(codec_id, arrays, codecs, precision=None, pref
187187
# setup
188188
i = int(arr_fn.split('.')[-2])
189189
arr = np.load(arr_fn)
190-
arr_bytes = buffer_tobytes(arr)
191190
if arr.flags.f_contiguous:
192191
order = 'F'
193192
else:
@@ -233,7 +232,7 @@ def check_backwards_compatibility(codec_id, arrays, codecs, precision=None, pref
233232
assert_array_items_equal(arr, dec_arr)
234233
else:
235234
assert_array_equal(arr, dec_arr)
236-
assert arr_bytes == buffer_tobytes(dec)
235+
assert buffer_tobytes(arr) == buffer_tobytes(dec)
237236

238237

239238
def check_err_decode_object_buffer(compressor):

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ commands =
1818
py37: pytest -v --cov=numcodecs --doctest-modules --doctest-glob=*.pyx numcodecs
1919
coverage report -m
2020
py37: flake8 --max-line-length=100 numcodecs
21+
pip freeze
2122
deps =
2223
py27: backports.lzma
2324
-rrequirements_dev.txt

0 commit comments

Comments
 (0)