Skip to content

Commit

Permalink
refactor: use identity check for comparison to a singleton
Browse files Browse the repository at this point in the history
Comparisons to the singleton objects, like `True`, `False`, and `None`, should be done with identity, not equality. Use `is` or `is not`.
  • Loading branch information
deepsource-autofix[bot] authored Mar 29, 2024
1 parent 31717d6 commit 03cac77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_hsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def test_roiloc(models_path):
mri, mask = hsf.roiloc_wrapper.get_mri(mris[0],
mask_pattern="no_mask.nii.gz")
assert isinstance(mri, ants.ANTsImage)
assert mask == None
assert mask is None

_, right, left = hsf.roiloc_wrapper.get_hippocampi(mri, {
"contrast": "t2",
Expand Down

0 comments on commit 03cac77

Please sign in to comment.