Fix tests

This commit is contained in:
William Gibson 2020-10-18 21:26:07 +01:00
parent 02729c7f2a
commit c900b6ec36
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ from tqdm import trange
def fetch(url):
import requests, gzip, os, hashlib, numpy
fp = os.path.join("/tmp", hashlib.md5(url.encode('utf-8')).hexdigest())
if not os.path.isfile(fp):
if os.path.isfile(fp):
with open(fp, "rb") as f:
dat = f.read()
else: