From b8adcae0e6328d614a610f3d23844b890654a003 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:11:55 -0400 Subject: [PATCH] Update test_compmixin.py for Python 3.13, maybe Origin: https://github.com/spacetelescope/stsci.tools/pull/164 --- pyraf/tools/tests/test_compmixin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyraf/tools/tests/test_compmixin.py b/pyraf/tools/tests/test_compmixin.py index eacc28f0..5f047669 100644 --- a/pyraf/tools/tests/test_compmixin.py +++ b/pyraf/tools/tests/test_compmixin.py @@ -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: