Skip to content

Commit 7e59562

Browse files
authored
Merge pull request #211 from SUSE/py3134plus-compat
Add python 3.13 & 3.14 to the CI
2 parents cc57ea0 + a853450 commit 7e59562

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/default.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
container: "docker.io/library/python:${{ matrix.python-version }}"
99
strategy:
10+
fail-fast: false
1011
matrix:
1112
python-version: [ 3.6, 3.7 ]
1213
steps:
@@ -30,19 +31,15 @@ jobs:
3031
test:
3132
runs-on: ubuntu-latest
3233
strategy:
34+
fail-fast: false
3335
matrix:
34-
include:
35-
- python_version: "3.8"
36-
- python_version: "3.9"
37-
- python_version: "3.10"
38-
- python_version: "3.11"
39-
- python_version: "3.12"
36+
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]
4037
steps:
4138
- uses: actions/checkout@v4
42-
- name: Set up Python ${{ matrix.python-version }}
39+
- name: Set up Python ${{ matrix.python_version }}
4340
uses: actions/setup-python@v5
4441
with:
45-
python-version: ${{ matrix.python-version }}
42+
python-version: ${{ matrix.python_version }}
4643
- name: Cache pip
4744
uses: actions/cache@v4
4845
with:
@@ -53,6 +50,10 @@ jobs:
5350
restore-keys: |
5451
${{ runner.os }}-pip-
5552
${{ runner.os }}-
53+
- name: Install system dependencies
54+
run: |
55+
sudo apt-get update
56+
sudo apt-get install -y libxml2-dev libxslt1-dev
5657
- name: Install dependencies
5758
run: |
5859
python -m pip install --upgrade pip

osctiny/tests/test_utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,14 @@ def test_get_cookie(self, *_):
642642

643643
jar = LWPCookieJar(filename=str(cookie_path))
644644
jar.load()
645-
self.assertEqual(cookie_str, CookieManager.get_cookie(jar=jar))
645+
result = CookieManager.get_cookie(jar=jar)
646+
647+
# Use regex to handle both quoted and unquoted domain formats
648+
# Python 3.13.4+ changed how domains are serialized (no quotes)
649+
expected_pattern = re.escape(cookie_str).replace(
650+
r'domain="\.suse\.de"', r'domain="?\.suse\.de"?'
651+
)
652+
self.assertRegex(result, expected_pattern)
646653

647654

648655
class TestSession(TestCase):

0 commit comments

Comments
 (0)