# Allow concatenated string literals from async_to_sync
psycopg_pool/psycopg_pool/pool.py: E501
+
+ # Pytest's importorskip() getting in the way
+ tests/types/test_numpy.py: E402
+ tests/types/test_shapely.py: E402
from psycopg.pq import Format
from psycopg.adapt import PyFormat
-try:
- import numpy as np
-except ImportError:
- pass
-
pytest.importorskip("numpy")
+import numpy as np
+
pytestmark = [pytest.mark.numpy]
skip_numpy2 = pytest.mark.skipif(
pytest.importorskip("shapely")
-from shapely.geometry import MultiPolygon, Point, Polygon # noqa: E402
+from shapely.geometry import MultiPolygon, Point, Polygon
-from psycopg.types.shapely import register_shapely # noqa: E402
+from psycopg.types.shapely import register_shapely
pytestmark = [
pytest.mark.postgis,