File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed 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