[test_downloadermiddleware_httpcache] Attempting to add xfail for leveldb related tests

https://github.com/scrapy/scrapy/issues/4085
This commit is contained in:
Roy 2019-10-27 17:39:47 +00:00
parent 4068797558
commit deacd34c8d
1 changed files with 1 additions and 1 deletions

View File

@ -104,6 +104,7 @@ class _BaseTest(unittest.TestCase):
class DefaultStorageTest(_BaseTest):
@pytest.mark.xfail(reason='leveldb not supported in python 3.8')
def test_storage(self):
with self._storage() as storage:
request2 = self.request.copy()
@ -154,7 +155,6 @@ class FilesystemStorageGzipTest(FilesystemStorageTest):
new_settings.setdefault('HTTPCACHE_GZIP', True)
return super(FilesystemStorageTest, self)._get_settings(**new_settings)
@pytest.mark.xfail(reason='leveldb not supported in python 3.8')
class LeveldbStorageTest(DefaultStorageTest):
pytest.importorskip('leveldb')