mirror of https://github.com/explosion/spaCy.git
assert filename match
This commit is contained in:
parent
4f703f0cb4
commit
da4c9cee06
|
@ -28,8 +28,10 @@ def install_data(url, path, filename):
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
filename = download_file(url, os.path.join(path, filename))
|
download_path = os.path.join(path, filename)
|
||||||
t = tarfile.open(filename)
|
tmp = download_file(url, download_path)
|
||||||
|
assert tmp == download_path
|
||||||
|
t = tarfile.open(download_path)
|
||||||
t.extractall(path)
|
t.extractall(path)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue