mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix Windows tests
* Unskip passable tests * Fix broken tests
This commit is contained in:
parent
839629b102
commit
2e482b207b
10 changed files with 58 additions and 41 deletions
|
|
@ -728,8 +728,9 @@ def download_attachments(output_path, urls):
|
|||
|
||||
# Generate percent-encoded URL
|
||||
scheme, netloc, path, query, fragment = urlsplit(url)
|
||||
path = quote(path)
|
||||
url = urlunsplit((scheme, netloc, path, query, fragment))
|
||||
if scheme != 'file':
|
||||
path = quote(path)
|
||||
url = urlunsplit((scheme, netloc, path, query, fragment))
|
||||
|
||||
if not os.path.exists(full_path):
|
||||
os.makedirs(full_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue