From ee5f59fdf4984646347d66676f5f7dd478edbe4e Mon Sep 17 00:00:00 2001 From: bashonly Date: Tue, 29 Jul 2025 17:59:05 -0500 Subject: [PATCH 1/3] [test:utils] Fix `sanitize_path` test for Python 3.11 on Windows Authored by: bashonly --- test/test_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_utils.py b/test/test_utils.py index 44747efda..534dfb0fb 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -249,11 +249,13 @@ def test_sanitize_path(self): self.assertEqual(sanitize_path('abc.../def...'), 'abc..#\\def..#') self.assertEqual(sanitize_path('C:\\abc:%(title)s.%(ext)s'), 'C:\\abc#%(title)s.%(ext)s') - # Check with nt._path_normpath if available + # If nt._path_normpath is available, test with os.path.normpath try: - from nt import _path_normpath as nt_path_normpath + from nt import _path_normpath as _ # noqa: F401 except ImportError: nt_path_normpath = None + else: + from os.path import normpath as nt_path_normpath for test, expected in [ ('C:\\', 'C:\\'), From 5eec5143a3bc9c8627d28334003184c7edd85901 Mon Sep 17 00:00:00 2001 From: bashonly Date: Tue, 29 Jul 2025 18:08:10 -0500 Subject: [PATCH 2/3] temporarily test win cpython 3.11 in core tests Authored by: bashonly --- .github/workflows/core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 86036989c..dd3990911 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -41,7 +41,7 @@ jobs: include: # atleast one of each CPython/PyPy tests must be in windows - os: windows-latest - python-version: '3.9' + python-version: '3.11' - os: windows-latest python-version: '3.10' - os: windows-latest From b8c543fd73f8d0f6bd5005f75cf42cb19222565e Mon Sep 17 00:00:00 2001 From: bashonly Date: Tue, 29 Jul 2025 18:11:15 -0500 Subject: [PATCH 3/3] Revert "temporarily test win cpython 3.11 in core tests" This reverts commit 5eec5143a3bc9c8627d28334003184c7edd85901. --- .github/workflows/core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index dd3990911..86036989c 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -41,7 +41,7 @@ jobs: include: # atleast one of each CPython/PyPy tests must be in windows - os: windows-latest - python-version: '3.11' + python-version: '3.9' - os: windows-latest python-version: '3.10' - os: windows-latest