Test correctly initialized Cache-instance on error

insteaf of raised Exception
This commit is contained in:
Thor77 2018-03-31 21:01:01 +02:00
parent 7acae1e45b
commit e3bc2d46a4
1 changed files with 2 additions and 2 deletions

View File

@ -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