Skip to content

Commit bdfb806

Browse files
committed
Remove some extra Python 3.5 conditionals.
That should remove all the Python 3.5 codepath, at leat all the explicit ones.
1 parent d30326b commit bdfb806

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

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)