From 133e5c3435184d5311d2dc2ff57efb2d1a37121a Mon Sep 17 00:00:00 2001 From: Austin Noto-Moniz Date: Thu, 19 Feb 2026 14:01:51 -0500 Subject: [PATCH] Don't skip XLSX mimetype on Windows for py3.14 Python 3.14 expanded the mimetypes recognized by the mimetypes module, including the ECMA-376 spec, which defines the XLSX type. Directly supporting it rather than relying on the underlying system (i.e. Windows registry) to capture it seems to guarantee its presence. --- tests/resources/test_file_link.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/resources/test_file_link.py b/tests/resources/test_file_link.py index ecdd6726e..50dbf64b0 100644 --- a/tests/resources/test_file_link.py +++ b/tests/resources/test_file_link.py @@ -21,6 +21,9 @@ from tests.utils.session import FakeSession, FakeS3Client, FakeCall, FakeRequestResponseApiError +PYTHON_VERSION_TUPLE = tuple(int(n) for n in platform.python_version_tuple()[:2]) + + @pytest.fixture def session() -> FakeSession: return FakeSession() @@ -47,7 +50,7 @@ def valid_data() -> dict: "asdf.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", marks=pytest.mark.xfail( - platform.system() == "Windows", + platform.system() == "Windows" and PYTHON_VERSION_TUPLE <= (3, 13), reason="windows-latest test servers omit xlsx from their registry", strict=True )