Test correctly initialized Cache-instance on error
insteaf of raised Exception
This commit is contained in:
parent
7acae1e45b
commit
e3bc2d46a4
|
@ -66,8 +66,8 @@ def test_cache_needs_parsing(cache, tmpdir):
|
|||
|
||||
|
||||
def test_cache_read_broken_file():
|
||||
with pytest.raises(UnpicklingError):
|
||||
Cache.read('tsstats/__init__.py')
|
||||
cache = Cache.read('tsstats/__init__.py')
|
||||
assert isinstance(cache, Cache)
|
||||
|
||||
|
||||
# INTEGRATION
|
||||
|
|
Loading…
Reference in New Issue