Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust test for Python 3.13 #164

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13-dev'
- name: Install and build
run: |
python -m pip install --upgrade pip wheel setuptools
Expand Down
3 changes: 3 additions & 0 deletions lib/stsci/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