File tree Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 1
1
# Break this out into a separate file to allow testing against
2
2
# different versions of numpy. This file should pin to the latest
3
3
# numpy version.
4
- numpy==1.17 .2; python_version > '3.0 '
4
+ numpy==1.19 .2; python_version >= '3.6 '
Original file line number Diff line number Diff line change @@ -139,9 +139,6 @@ def test_nbytes_stored(self):
139
139
except TypeError :
140
140
pass
141
141
142
- if hasattr (z .store , 'close' ):
143
- z .store .close ()
144
-
145
142
# noinspection PyStatementEffect
146
143
def test_array_1d (self ):
147
144
a = np .arange (1050 )
Original file line number Diff line number Diff line change 2
2
import os
3
3
import pickle
4
4
import shutil
5
- import sys
6
5
import tempfile
7
6
import textwrap
8
7
import unittest
@@ -990,8 +989,7 @@ def test_context_manager(self):
990
989
991
990
# Check that exiting the context manager closes the store,
992
991
# 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 ):
995
993
store .zf .extractall ()
996
994
997
995
Original file line number Diff line number Diff line change 1
1
import collections
2
- from distutils .version import LooseVersion
3
2
from collections .abc import MutableMapping
4
3
import os
5
- import sys
6
4
7
5
import pytest
8
6
@@ -50,10 +48,8 @@ def skip_test_env_var(name):
50
48
51
49
52
50
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
58
54
except ImportError : # pragma: no cover
59
55
have_fsspec = False
You can’t perform that action at this time.
0 commit comments