diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-12-10 19:41:33 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-12-10 19:41:33 -0700 |
commit | bb959e1857c3ba2ad98ab87f13fdcc6b43740ffb (patch) | |
tree | 788cdd7c020394c453de5e325846be124aaf7690 /numpy/linalg/tests | |
parent | 1579ba490d5bc67f16d5311a0789cdf69d81ea11 (diff) | |
download | numpy-bb959e1857c3ba2ad98ab87f13fdcc6b43740ffb.tar.gz |
MAINT: Replace assert with assert_(...) in some tests.
Diffstat (limited to 'numpy/linalg/tests')
-rw-r--r-- | numpy/linalg/tests/test_linalg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index afa098f12..fc139be19 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -61,7 +61,7 @@ def get_rtol(dtype): class LinalgCase(object): def __init__(self, name, a, b, exception_cls=None): - assert isinstance(name, str) + assert_(isinstance(name, str)) self.name = name self.a = a self.b = b @@ -267,7 +267,7 @@ def _stride_comb_iter(x): xi = xi[slices] xi[...] = x xi = xi.view(x.__class__) - assert np.all(xi == x) + assert_(np.all(xi == x)) yield xi, "stride_" + "_".join(["%+d" % j for j in repeats]) # generate also zero strides if possible |