Skip to content

Commit

Permalink
Update test_compmixin.py
Browse files Browse the repository at this point in the history
for Python 3.13, maybe

Origin: spacetelescope/stsci.tools#164
  • Loading branch information
pllim authored and olebole committed Sep 18, 2024
1 parent 672da21 commit 0bd1d4b
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 0bd1d4b

Please sign in to comment.