Scrapy, a fast high-level web crawling & scraping framework for Python.
[test_downloadermiddleware_httpcache] Fixing pytest skip behaviour https://github.com/scrapy/scrapy/issues/4085
Roy4432136ffff4
diff --git a/tests/test_downloadermiddleware_httpcache.py b/tests/test_downloadermiddleware_httpcache.pyindex ba5027307..32085b095 100644--- a/tests/test_downloadermiddleware_httpcache.py+++ b/tests/test_downloadermiddleware_httpcache.py@@ -6,7 +6,6 @@ import unittestimport email.utilsfrom contextlib import contextmanagerimport pytest-import sysfrom scrapy.http import Response, HtmlResponse, Requestfrom scrapy.spiders import Spider@@ -161,10 +160,7 @@ class LeveldbStorageTest(DefaultStorageTest):pytest.importorskip('leveldb')except SystemError:# Happens in python 3.8- pytest.mark.skipif(- sys.version_info >= (3, 8),- reason='leveldb not supported in python 3.8',- )+ pytest.skip("'SystemError: bad call flags' occurs on Python 3.8")storage_class = 'scrapy.extensions.httpcache.LeveldbCacheStorage'