MOTOR-1477 Add workaround for missing compression.zstd (#353)
This commit is contained in:
parent
52234081fb
commit
224da029d5
@ -18,10 +18,22 @@ import asyncio
|
|||||||
import datetime
|
import datetime
|
||||||
import email
|
import email
|
||||||
import logging
|
import logging
|
||||||
|
import sys
|
||||||
import test
|
import test
|
||||||
import time
|
import time
|
||||||
from test.asyncio_tests import AsyncIOTestCase, asyncio_test
|
from test.asyncio_tests import AsyncIOTestCase, asyncio_test
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
# MOTOR-1477 - after libzstd is supported on build hosts
|
||||||
|
# we can remove this guard.
|
||||||
|
if sys.version_info >= (3, 14):
|
||||||
|
try:
|
||||||
|
import compression.zstd # noqa: F401
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
pytest.skip(allow_module_level=True)
|
||||||
|
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import aiohttp.web
|
import aiohttp.web
|
||||||
import gridfs
|
import gridfs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user