From e52472411e6596808963e1a34d7b9ef0a1f6ef41 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 6 Dec 2021 22:19:45 +0000 Subject: MAINT,TST: Reduce np.testing to IS_PYPY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Melissa Weber Mendonça --- numpy/f2py/tests/test_common.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'numpy/f2py/tests/test_common.py') diff --git a/numpy/f2py/tests/test_common.py b/numpy/f2py/tests/test_common.py index 056ae5ee8..8a4b221ef 100644 --- a/numpy/f2py/tests/test_common.py +++ b/numpy/f2py/tests/test_common.py @@ -5,8 +5,6 @@ import pytest import numpy as np from . import util -from numpy.testing import assert_array_equal - class TestCommonBlock(util.F2PyTest): sources = [util.getpath("tests", "src", "common", "block.f")] @@ -15,8 +13,6 @@ class TestCommonBlock(util.F2PyTest): reason="Fails with MinGW64 Gfortran (Issue #9673)") def test_common_block(self): self.module.initcb() - assert_array_equal(self.module.block.long_bn, - np.array(1.0, dtype=np.float64)) - assert_array_equal(self.module.block.string_bn, - np.array("2", dtype="|S1")) - assert_array_equal(self.module.block.ok, np.array(3, dtype=np.int32)) + assert self.module.block.long_bn == np.array(1.0, dtype=np.float64) + assert self.module.block.string_bn == np.array("2", dtype="|S1") + assert self.module.block.ok == np.array(3, dtype=np.int32) -- cgit v1.2.1