From e3bc2d46a417c648ae462238247012b927d07ac6 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 31 Mar 2018 21:01:01 +0200 Subject: [PATCH] Test correctly initialized Cache-instance on error insteaf of raised Exception --- tsstats/tests/test_cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsstats/tests/test_cache.py b/tsstats/tests/test_cache.py index 472f5b3..2f81965 100644 --- a/tsstats/tests/test_cache.py +++ b/tsstats/tests/test_cache.py @@ -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