From 77b45f6e34beb8b57a37eaf6fc816d2561d59477 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Mon, 31 Jul 2023 11:23:17 -0500 Subject: [PATCH] fix new flake8 errors (#942) --- test/test_fluid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_fluid.py b/test/test_fluid.py index 17a898730..26fd3feb2 100644 --- a/test/test_fluid.py +++ b/test/test_fluid.py @@ -185,7 +185,7 @@ def test_velocity_gradient_structure(actx_factory): exp_trace = 15 assert grad_v.shape == (dim, dim) from meshmode.dof_array import DOFArray - assert type(grad_v[0, 0]) == DOFArray + assert isinstance(grad_v[0, 0], DOFArray) def inf_norm(x): return actx.to_numpy(op.norm(dcoll, x, np.inf)) @@ -237,7 +237,7 @@ def test_species_mass_gradient(actx_factory, dim): assert grad_y.shape == (nspecies, dim) from meshmode.dof_array import DOFArray - assert type(grad_y[0, 0]) == DOFArray + assert isinstance(grad_y[0, 0], DOFArray) def inf_norm(x): return actx.to_numpy(op.norm(dcoll, x, np.inf))