Skip to content

Commit fa7e708

Browse files
committed
Fix path-to-URL conversion on Python 3.14+
Signed-off-by: Scott K Logan <logans@cottsay.net>
1 parent 2c92f83 commit fa7e708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
def to_file_url(path):
18-
return urljoin('file:', pathname2url(path))
18+
return urljoin('file://', pathname2url(os.path.abspath(path)))
1919

2020

2121
class StagedReposFile(unittest.TestCase):

0 commit comments

Comments
 (0)