Skip to content

Commit 2d2a91c

Browse files
committed
Disable python.net tests for python 3.13
1 parent af5c329 commit 2d2a91c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ flatpak_sdk = "org.gnome.Sdk"
7777

7878
[tool.briefcase.app.testbed.windows]
7979
requires = [
80-
"pythonnet>=3.0.0rc6",
80+
# Python.net isn't avaialble for 3.13 yet.
81+
"pythonnet>=3.0.0rc6; python_version < '3.13'",
8182
# Windows doesn't provide the zoneinfo TZ database; use the Python provided one
8283
"tzdata",
8384
]

tests/test_windows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66

77
import pytest
88

9+
from .test_thirdparty import xfail_if_not_installed
10+
911
if sys.platform != "win32":
1012
pytest.skip("Skipping Windows-only tests", allow_module_level=True)
1113

1214

15+
@xfail_if_not_installed("pythonnet")
1316
def test_pythonnet():
1417
"Python.net integration works as expected"
1518
# Set up CLR

0 commit comments

Comments
 (0)