Skip to content

Commit 03e9f01

Browse files
committed
use abspath to load unit test data file
1 parent ebf0d18 commit 03e9f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_clean_rawdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
def ensure_file(fname: str) -> str:
1919
"""Download a file if it does not exist and return the local path."""
2020
full_url = f"{web_root}{fname}"
21-
local_file = f"{local_url}{fname}"
21+
local_file = os.path.abspath(f"{local_url}{fname}")
2222
if not os.path.exists(local_file):
2323
from urllib.request import urlretrieve
2424
urlretrieve(full_url, local_file)

0 commit comments

Comments
 (0)