Skip to content

Commit 87f874f

Browse files
committed
Skip until 3.13.0b3 instead
1 parent 596be04 commit 87f874f

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

tests/unit/test_collector.py

+8-16
Original file line numberDiff line numberDiff line change
@@ -383,14 +383,10 @@ def test_clean_url_path_with_local_path(path: str, expected: str) -> None:
383383
pytest.param(
384384
"file:///T:/path/with spaces/",
385385
"file:///T:/path/with%20spaces",
386-
marks=[
387-
pytest.mark.skipif("sys.platform != 'win32'"),
388-
pytest.mark.xfail(
389-
reason="Failing in Python 3.13.0a1, fixed in python/cpython#113563",
390-
condition="sys.version_info >= (3, 13)",
391-
strict=True,
392-
),
393-
],
386+
marks=pytest.mark.skipif(
387+
"sys.platform != 'win32' or "
388+
"sys.version_info == (3, 13, 0, 'beta', 2)"
389+
),
394390
),
395391
# URL with Windows drive letter, running on non-windows
396392
# platform. The `:` after the drive should be quoted.
@@ -403,14 +399,10 @@ def test_clean_url_path_with_local_path(path: str, expected: str) -> None:
403399
pytest.param(
404400
"git+file:///T:/with space/[email protected]#egg=my-package-1.0",
405401
"git+file:///T:/with%20space/[email protected]#egg=my-package-1.0",
406-
marks=[
407-
pytest.mark.skipif("sys.platform != 'win32'"),
408-
pytest.mark.xfail(
409-
reason="Failing in Python 3.13.0a1, fixed in python/cpython#113563",
410-
condition="sys.version_info >= (3, 13)",
411-
strict=True,
412-
),
413-
],
402+
marks=pytest.mark.skipif(
403+
"sys.platform != 'win32' or "
404+
"sys.version_info == (3, 13, 0, 'beta', 2)"
405+
),
414406
),
415407
# Test a VCS URL with a Windows drive letter and revision,
416408
# running on non-windows platform.

tests/unit/test_urls.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ def test_path_to_url_unix() -> None:
2323
pytest.param(
2424
r"\\unc\as\path",
2525
"file://unc/as/path",
26-
marks=pytest.mark.xfail(
27-
reason="Failing in Python 3.13.0a1, fixed in python/cpython#113563",
28-
condition="sys.version_info >= (3, 13)",
29-
strict=True,
26+
marks=pytest.mark.skipif(
27+
"sys.platform != 'win32' or "
28+
"sys.version_info == (3, 13, 0, 'beta', 2)"
3029
),
3130
id="unc-path",
3231
),

0 commit comments

Comments
 (0)