[test_downloadermiddleware_httpcache.py] Cleaning text

https://github.com/scrapy/scrapy/issues/4085
This commit is contained in:
Roy 2019-10-28 16:12:03 +00:00
parent b73d217de5
commit 93e3dc1b82
1 changed files with 2 additions and 2 deletions

View File

@ -155,13 +155,13 @@ class FilesystemStorageGzipTest(FilesystemStorageTest):
new_settings.setdefault('HTTPCACHE_GZIP', True)
return super(FilesystemStorageTest, self)._get_settings(**new_settings)
class LeveldbStorageTest(DefaultStorageTest):
try:
pytest.importorskip('leveldb')
except SystemError:
# Happens in python 3.8
pytestmark = pytest.mark.skip("'SystemError: bad call flags' occurs on Python 3.8")
pytestmark = pytest.mark.skip("Test module skipped - 'SystemError: bad call flags' occurs when >= Python 3.8")
storage_class = 'scrapy.extensions.httpcache.LeveldbCacheStorage'