Skip to content

Commit 16ff037

Browse files
authored
Merge pull request #177 from iraf-community/python13
Update test_compmixin.py
2 parents 672da21 + 0bd1d4b commit 16ff037

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyraf/tools/tests/test_compmixin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def _compare(self, other, method):
3535
elif other is None:
3636
# coerce to str compare
3737
return method(str(self.val), '')
38+
elif self.val is None:
39+
# coerce to str compare
40+
return method('', str(other))
3841
elif isinstance(other, int):
3942
# handle ONLY case where self.val is a single char or an int
4043
if isinstance(self.val, str) and len(self.val) == 1:

0 commit comments

Comments
 (0)