@@ -26,11 +26,11 @@ def test_cache_success(dummycache, date, base):
(datetime.date(1999, 2, 1), 'EUR'),
(datetime.date(1999, 3, 1), 'USD'),
])
def test_cache_not_found(dummycache, date, base):
try:
cache_file = dummycache.historical(date, base)
except FileNotFoundError:
except oxrlib.loaders.LoaderNoDataError:
pass
else:
cache_file.close()
assert False, "cache file found when unexpected"