42
42
TestData ,
43
43
make_test_link_collector ,
44
44
skip_needs_new_pathname2url_trailing_slash_behavior_win ,
45
- skip_needs_new_urlun_behavior_win ,
46
45
skip_needs_old_pathname2url_trailing_slash_behavior_win ,
47
- skip_needs_old_urlun_behavior_win ,
48
46
)
49
47
50
48
ACCEPT = ", " .join (
@@ -309,7 +307,7 @@ def test_clean_url_path(path: str, expected: str, is_local_path: bool) -> None:
309
307
# Test a VCS path with a Windows drive letter and revision.
310
308
pytest .param (
311
309
"/T:/with space/[email protected] " ,
312
- "/// T:/with%20space/[email protected] " ,
310
+ "/T:/with%20space/[email protected] " ,
313
311
marks = pytest .mark .skipif ("sys.platform != 'win32'" ),
314
312
),
315
313
# Test a VCS path with a Windows drive letter and revision,
@@ -393,26 +391,12 @@ def test_clean_url_path_with_local_path(path: str, expected: str) -> None:
393
391
pytest .param (
394
392
"file:///T:/path/with spaces/" ,
395
393
"file:///T:/path/with%20spaces" ,
396
- marks = [
397
- skip_needs_old_urlun_behavior_win ,
398
- skip_needs_old_pathname2url_trailing_slash_behavior_win ,
399
- ],
400
- ),
401
- pytest .param (
402
- "file:///T:/path/with spaces/" ,
403
- "file://///T:/path/with%20spaces" ,
404
- marks = [
405
- skip_needs_new_urlun_behavior_win ,
406
- skip_needs_old_pathname2url_trailing_slash_behavior_win ,
407
- ],
394
+ marks = skip_needs_old_pathname2url_trailing_slash_behavior_win ,
408
395
),
409
396
pytest .param (
410
397
"file:///T:/path/with spaces/" ,
411
- "file://///T:/path/with%20spaces/" ,
412
- marks = [
413
- skip_needs_new_urlun_behavior_win ,
414
- skip_needs_new_pathname2url_trailing_slash_behavior_win ,
415
- ],
398
+ "file:///T:/path/with%20spaces/" ,
399
+ marks = skip_needs_new_pathname2url_trailing_slash_behavior_win ,
416
400
),
417
401
# URL with Windows drive letter, running on non-windows
418
402
# platform. The `:` after the drive should be quoted.
@@ -425,12 +409,7 @@ def test_clean_url_path_with_local_path(path: str, expected: str) -> None:
425
409
pytest .param (
426
410
"git+file:///T:/with space/[email protected] #egg=my-package-1.0" ,
427
411
"git+file:///T:/with%20space/[email protected] #egg=my-package-1.0" ,
428
- marks = skip_needs_old_urlun_behavior_win ,
429
- ),
430
- pytest .param (
431
- "git+file:///T:/with space/[email protected] #egg=my-package-1.0" ,
432
- "git+file://///T:/with%20space/[email protected] #egg=my-package-1.0" ,
433
- marks = skip_needs_new_urlun_behavior_win ,
412
+ marks = pytest .mark .skipif ("sys.platform != 'win32'" ),
434
413
),
435
414
# Test a VCS URL with a Windows drive letter and revision,
436
415
# running on non-windows platform.
0 commit comments