Skip to content

Commit d604e0b

Browse files
committed
fix is not comparisons for strs
1 parent 4061d0d commit d604e0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fooof/tests/objs/test_fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def test_fooof_load():
187187
# Test that settings and data are None
188188
# Except for aperiodic mode, which can be inferred from the data
189189
for setting in OBJ_DESC['settings']:
190-
if setting is not 'aperiodic_mode':
190+
if setting != 'aperiodic_mode':
191191
assert getattr(tfm, setting) is None
192192
assert getattr(tfm, 'power_spectrum') is None
193193

fooof/tests/objs/test_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def test_fg_load():
247247
# Test that settings and data are None
248248
# Except for aperiodic mode, which can be inferred from the data
249249
for setting in OBJ_DESC['settings']:
250-
if setting is not 'aperiodic_mode':
250+
if setting != 'aperiodic_mode':
251251
assert getattr(tfg, setting) is None
252252
assert tfg.power_spectra is None
253253

0 commit comments

Comments
 (0)