diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-04-29 20:36:04 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-04-29 20:36:04 -0300 |
commit | 10a2311992a3ad89b9968cd102edb67646a84412 (patch) | |
tree | b36d826222c0d4079143fb4a758afb56cc5d8c2c /pint/testsuite/test_dask.py | |
parent | b63697287ba1e5de7300890ea4c03b8781b04863 (diff) | |
download | pint-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.py | 7 |
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): |