summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Yurchak <rth.yurchak@gmail.com>2020-03-24 22:22:24 +0100
committerRoman Yurchak <rth.yurchak@gmail.com>2020-03-24 22:22:24 +0100
commit77d685a29ec03184c1691cad58d8730fe530a0ae (patch)
tree9581d585f2975ec84269cf2397a3419612ed45f3
parent637af579ef5985bd8c267817cf445aca5bb34531 (diff)
downloadnumpy-77d685a29ec03184c1691cad58d8730fe530a0ae.tar.gz
pathlib is in the standard library
-rw-r--r--numpy/core/tests/test_multiarray.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 829679dab..7b3397795 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -16,14 +16,7 @@ from contextlib import contextmanager
from numpy.compat import pickle
-try:
- import pathlib
-except ImportError:
- try:
- import pathlib2 as pathlib
- except ImportError:
- pathlib = None
-
+import pathlib
import builtins
from decimal import Decimal
@@ -4680,14 +4673,12 @@ class TestIO:
y = np.fromfile(self.filename, dtype=self.dtype)
assert_array_equal(y, self.x.flat)
- @pytest.mark.skipif(pathlib is None, reason="pathlib not found")
def test_roundtrip_pathlib(self):
p = pathlib.Path(self.filename)
self.x.tofile(p)
y = np.fromfile(p, dtype=self.dtype)
assert_array_equal(y, self.x.flat)
- @pytest.mark.skipif(pathlib is None, reason="pathlib not found")
def test_roundtrip_dump_pathlib(self):
p = pathlib.Path(self.filename)
self.x.dump(p)