Skip to content

Commit

Permalink
bump python version on ubuntu runner to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Jan 24, 2025
1 parent e0ec1d0 commit ae7a5e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
matrix:
include:
- os: ubuntu-24.04
python-version: 3.8
python-version: "3.12"
- os: macos-latest
python-version: "3.12"
- os: windows-2022
Expand Down Expand Up @@ -130,6 +130,7 @@ jobs:
if: runner.os == 'Linux'
run: |
cd bindings/python
python3 -m pip install setuptools
python3 setup.py build_ext --b2-args "deprecated-functions=off"
- name: tests (Linux)
Expand Down
4 changes: 2 additions & 2 deletions bindings/python/tests/alert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1843,11 +1843,11 @@ def test_torrent_delete_failed_alert(self) -> None:
self.assert_torrent_alert(alert, handle)
if lt.api_version < 2:
self.assertEqual(alert.msg, alert.error.message())
errno_value = alert.error.value()
error_value = alert.error.value()
# On non-Windows, the error value is an errno. On Windows it's a
# "winerror" value. This uses python's winerror-to-errno translation on
# Windows only.
errno_value = OSError(errno_value, "", None, errno_value).errno
errno_value = OSError(error_value, "", None, error_value).errno
self.assertEqual(errno_value, errno.ENOTEMPTY)
self.assertEqual(alert.error.category(), lt.system_category())
if lt.api_version < 3:
Expand Down

0 comments on commit ae7a5e1

Please sign in to comment.