summaryrefslogtreecommitdiff
path: root/pint/testsuite/test_dask.py
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-04-29 20:36:04 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-04-29 20:36:04 -0300
commit10a2311992a3ad89b9968cd102edb67646a84412 (patch)
treeb36d826222c0d4079143fb4a758afb56cc5d8c2c /pint/testsuite/test_dask.py
parentb63697287ba1e5de7300890ea4c03b8781b04863 (diff)
downloadpint-10a2311992a3ad89b9968cd102edb67646a84412.tar.gz
Run refurb --python-version 3.9 in pint/testsuite
Diffstat (limited to 'pint/testsuite/test_dask.py')
-rw-r--r--pint/testsuite/test_dask.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pint/testsuite/test_dask.py b/pint/testsuite/test_dask.py
index f4dee6a..0e6a1cf 100644
--- a/pint/testsuite/test_dask.py
+++ b/pint/testsuite/test_dask.py
@@ -1,5 +1,6 @@
import importlib
-import os
+
+import pathlib
import pytest
@@ -135,8 +136,8 @@ def test_visualize(local_registry, dask_array):
assert res is None
# These commands only work on Unix and Windows
- assert os.path.exists("mydask.png")
- os.remove("mydask.png")
+ assert pathlib.Path("mydask.png").exists()
+ pathlib.Path("mydask.png").unlink()
def test_compute_persist_equivalent(local_registry, dask_array, numpy_array):