Skip to content

Commit 0bd1d4b

Browse files
pllimolebole
authored andcommitted
Update test_compmixin.py
for Python 3.13, maybe Origin: spacetelescope/stsci.tools#164
1 parent 672da21 commit 0bd1d4b

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)