Skip to content

Commit aef5524

Browse files
committed
fix: Skip psycopg install on pypy
1 parent 89c84b8 commit aef5524

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/integrations/django/test_basic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import platform
2+
13
import pytest
24

35
from werkzeug.test import Client
@@ -164,6 +166,9 @@ def test_sql_dict_query_params(sentry_init, capture_events):
164166
assert crumb["message"] == ("SELECT count(*) FROM people_person WHERE foo = 10")
165167

166168

169+
@pytest.mark.skipif(
170+
platform.python_implementation() == "PyPy", reason="psycopg broken on pypy"
171+
)
167172
@pytest.mark.django_db
168173
def test_sql_psycopg2_string_composition(sentry_init, capture_events):
169174
sentry_init(integrations=[DjangoIntegration()], send_default_pii=True)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ envlist =
4242
deps =
4343
-r test-requirements.txt
4444

45-
django: psycopg2>=2.7.5
45+
py{2.7,3.4,3.5,3.6,3.7}-django: psycopg2>=2.7.5
4646

4747
django-{1.6,1.7,1.8}: pytest-django<3.0
4848
django-{1.9,1.10,1.11,2.0,2.1,dev}: pytest-django>=3.0

0 commit comments

Comments
 (0)