diff options
| author | Rohit Goswami <rog32@hi.is> | 2021-12-06 22:19:45 +0000 |
|---|---|---|
| committer | Rohit Goswami <rog32@hi.is> | 2021-12-06 22:20:41 +0000 |
| commit | e52472411e6596808963e1a34d7b9ef0a1f6ef41 (patch) | |
| tree | 5b796e4072532f17b61d4d873e70277366829e0c /numpy/f2py/tests/test_common.py | |
| parent | 8c588512d69574e4b6bfe0d21f1922a70ec56812 (diff) | |
| download | numpy-e52472411e6596808963e1a34d7b9ef0a1f6ef41.tar.gz | |
MAINT,TST: Reduce np.testing to IS_PYPY
Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
Diffstat (limited to 'numpy/f2py/tests/test_common.py')
| -rw-r--r-- | numpy/f2py/tests/test_common.py | 10 |
1 files changed, 3 insertions, 7 deletions
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) |
