From f9e2f7706569c33a423f7fa7ff6e7780ad01c139 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 14 Jun 2025 16:35:32 -0500 Subject: [PATCH 1/2] test it all Authored by: bashonly --- .github/workflows/core.yml | 12 ++++++++---- .github/workflows/download.yml | 6 +++--- .github/workflows/quick-test.yml | 6 +++--- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index dd2c6f481..80c1e983d 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -36,20 +36,24 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - # CPython 3.9 is in quick-test - python-version: ['3.10', '3.11', '3.12', '3.13', pypy-3.10] + # TODO: actually do this: CPython 3.10 is in quick-test + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14-dev', pypy-3.10, pypy-3.11] include: # atleast one of each CPython/PyPy tests must be in windows - - os: windows-latest - python-version: '3.9' - os: windows-latest python-version: '3.10' + - os: windows-latest + python-version: '3.11' - os: windows-latest python-version: '3.12' - os: windows-latest python-version: '3.13' + - os: windows-latest + python-version: '3.14-dev' - os: windows-latest python-version: pypy-3.10 + - os: windows-latest + python-version: pypy-3.11 steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index 6849fba9b..db0f2200b 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: '3.10' - name: Install test requirements run: python3 ./devscripts/install_deps.py --include dev - name: Run tests @@ -28,11 +28,11 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - python-version: ['3.10', '3.11', '3.12', '3.13', pypy-3.10] + python-version: ['3.11', '3.12', '3.13', pypy-3.10, pypy-3.11] include: # atleast one of each CPython/PyPy tests must be in windows - os: windows-latest - python-version: '3.9' + python-version: '3.10' - os: windows-latest python-version: pypy-3.10 steps: diff --git a/.github/workflows/quick-test.yml b/.github/workflows/quick-test.yml index 8a7b24033..46158490e 100644 --- a/.github/workflows/quick-test.yml +++ b/.github/workflows/quick-test.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python 3.9 + - name: Set up Python 3.14-dev uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.14-dev' - name: Install test requirements run: python3 ./devscripts/install_deps.py -o --include test - name: Run tests @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.14-dev' - name: Install dev dependencies run: python3 ./devscripts/install_deps.py -o --include static-analysis - name: Make lazy extractors From 33552d220db9f381d7fdd5f0ab9061dd4d1a758a Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Sat, 14 Jun 2025 16:48:08 -0500 Subject: [PATCH 2/2] test `test_traversal_morsel` patch Authored by: Grub4K --- test/test_traversal.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/test_traversal.py b/test/test_traversal.py index bc433029d..52215f5a7 100644 --- a/test/test_traversal.py +++ b/test/test_traversal.py @@ -416,18 +416,8 @@ def test_traversal_unbranching(self): '`any` should allow further branching' def test_traversal_morsel(self): - values = { - 'expires': 'a', - 'path': 'b', - 'comment': 'c', - 'domain': 'd', - 'max-age': 'e', - 'secure': 'f', - 'httponly': 'g', - 'version': 'h', - 'samesite': 'i', - } morsel = http.cookies.Morsel() + values = dict(zip(morsel, 'abcdefghijklmnop')) morsel.set('item_key', 'item_value', 'coded_value') morsel.update(values) values['key'] = 'item_key'