From f99e93b5839f4166972fa8e83d93de6eccb5b619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Delaporte-Mathurin?= <40028739+RemDelaporteMathurin@users.noreply.github.com> Date: Wed, 29 Jun 2022 14:22:26 +0200 Subject: [PATCH] [skip ci] is_file() instead of exists() Co-authored-by: Paul Romano --- tests/unit_tests/test_mesh_to_vtk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/test_mesh_to_vtk.py b/tests/unit_tests/test_mesh_to_vtk.py index 3b7ccf9fa6..31fbd4c882 100644 --- a/tests/unit_tests/test_mesh_to_vtk.py +++ b/tests/unit_tests/test_mesh_to_vtk.py @@ -38,7 +38,7 @@ def test_write_data_to_vtk(mesh, tmpdir): mesh.write_data_to_vtk(filename=filename, datasets={"label1": data, "label2": data}) # TEST - assert exists(filename) + assert filename.is_file() # read file reader = vtk.vtkStructuredGridReader()