Fix tests ((again))

This commit is contained in:
William Gibson 2020-10-18 21:31:55 +01:00
parent d33885f496
commit 91a352a8e2
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ def fetch_mnist():
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: