Skip to content

Commit 773b043

Browse files
committed
Fix test_feed_root_empty failing on Python 3.14 (for real).
1 parent e910f75 commit 773b043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def test_feed_root_empty(data_dir, scheme, relative):
796796
test_path = data_dir.joinpath('full.rss')
797797
if relative:
798798
test_path = test_path.relative_to(type(data_dir)().absolute())
799-
if not relative:
799+
if scheme.endswith('/') and str(test_path).startswith('/'):
800800
# urllib.url2pathname fails for file://...//... in Python 3.14
801801
scheme = scheme.removesuffix('/')
802802
test_url = scheme + str(test_path)

0 commit comments

Comments
 (0)