mirror of https://github.com/commaai/tinygrad.git
Fix tests
This commit is contained in:
parent
02729c7f2a
commit
c900b6ec36
|
@ -8,7 +8,7 @@ from tqdm import trange
|
||||||
def fetch(url):
|
def fetch(url):
|
||||||
import requests, gzip, os, hashlib, numpy
|
import requests, gzip, os, hashlib, numpy
|
||||||
fp = os.path.join("/tmp", hashlib.md5(url.encode('utf-8')).hexdigest())
|
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:
|
with open(fp, "rb") as f:
|
||||||
dat = f.read()
|
dat = f.read()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue