Skip to content

Commit 5c52819

Browse files
author
Martin Durant
committed
Merge branch 'master' into fsspec_w
2 parents 4bc8e62 + 06c3b40 commit 5c52819

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

requirements_dev_numpy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Break this out into a separate file to allow testing against
22
# different versions of numpy. This file should pin to the latest
33
# numpy version.
4-
numpy==1.17.2; python_version > '3.0'
4+
numpy==1.19.2; python_version >= '3.6'

zarr/tests/test_core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ def test_nbytes_stored(self):
139139
except TypeError:
140140
pass
141141

142-
if hasattr(z.store, 'close'):
143-
z.store.close()
144-
145142
# noinspection PyStatementEffect
146143
def test_array_1d(self):
147144
a = np.arange(1050)

zarr/tests/test_hierarchy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import pickle
44
import shutil
5-
import sys
65
import tempfile
76
import textwrap
87
import unittest
@@ -990,8 +989,7 @@ def test_context_manager(self):
990989

991990
# Check that exiting the context manager closes the store,
992991
# and therefore the underlying ZipFile.
993-
error = ValueError if sys.version_info >= (3, 6) else RuntimeError
994-
with pytest.raises(error):
992+
with pytest.raises(ValueError):
995993
store.zf.extractall()
996994

997995

zarr/tests/util.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import collections
2-
from distutils.version import LooseVersion
32
from collections.abc import MutableMapping
43
import os
5-
import sys
64

75
import pytest
86

@@ -50,10 +48,8 @@ def skip_test_env_var(name):
5048

5149

5250
try:
53-
if LooseVersion(sys.version) >= LooseVersion("3.6"):
54-
import fsspec # noqa: F401
55-
have_fsspec = True
56-
else: # pragma: no cover
57-
have_fsspec = False
51+
import fsspec # noqa: F401
52+
53+
have_fsspec = True
5854
except ImportError: # pragma: no cover
5955
have_fsspec = False

0 commit comments

Comments
 (0)