Skip to content

Commit 9294bb1

Browse files
committed
test: Fix "is not" -> "!="
1 parent 5c344d2 commit 9294bb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_fftw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_fftw():
103103
idct = fftw.idctn(input_array, None, axes, type, threads, iflags, output_array=oa)
104104
A2 = idct(B, implicit=True, normalize=True)
105105
assert allclose(A, A2), np.linalg.norm(A-A2)
106-
if typecode is not 'g' and not type is 4:
106+
if typecode != 'g' and type != 4:
107107
B2 = scipy_dctn(A, axes=axes, type=type)
108108
assert allclose(B, B2), np.linalg.norm(B-B2)
109109

@@ -112,7 +112,7 @@ def test_fftw():
112112
idst = fftw.idstn(input_array, None, axes, type, threads, iflags, output_array=oa)
113113
A2 = idst(B, implicit=True, normalize=True)
114114
assert allclose(A, A2), np.linalg.norm(A-A2)
115-
if typecode is not 'g' and not type is 4:
115+
if typecode != 'g' and type != 4:
116116
B2 = scipy_dstn(A, axes=axes, type=type)
117117
assert allclose(B, B2), np.linalg.norm(B-B2)
118118

@@ -132,7 +132,7 @@ def test_fftw():
132132
M = fftw.get_normalization(kds, input_array.shape, axes)
133133
assert allclose(C2*M, A)
134134
# Test vs scipy for transforms available in scipy
135-
if typecode is not 'g' and not any(f in kds for f in (fftw.FFTW_RODFT11, fftw.FFTW_REDFT11)):
135+
if typecode != 'g' and not any(f in kds for f in (fftw.FFTW_RODFT11, fftw.FFTW_REDFT11)):
136136
for m, ts in enumerate(tsf):
137137
A = eval('scipy.fftpack.'+ts[:-1])(A, axis=axes[m], type=int(ts[-1]))
138138
assert allclose(C, A), np.linalg.norm(C-A)

0 commit comments

Comments
 (0)