Skip to content

Commit

Permalink
Merge pull request #177 from iraf-community/python13
Browse files Browse the repository at this point in the history
Update test_compmixin.py
  • Loading branch information
olebole authored Sep 23, 2024
2 parents 672da21 + 0bd1d4b commit 16ff037
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyraf/tools/tests/test_compmixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def _compare(self, other, method):
elif other is None:
# coerce to str compare
return method(str(self.val), '')
elif self.val is None:
# coerce to str compare
return method('', str(other))
elif isinstance(other, int):
# handle ONLY case where self.val is a single char or an int
if isinstance(self.val, str) and len(self.val) == 1:
Expand Down

0 comments on commit 16ff037

Please sign in to comment.