Skip to content

Commit 3b17b68

Browse files
authored
fix(tests): Removed unsupported Django 1.6 from tests to avoid confusion (#1338)
1 parent c927d34 commit 3b17b68

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

sentry_sdk/integrations/django/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def __init__(self, transaction_style="url", middleware_spans=True):
100100
def setup_once():
101101
# type: () -> None
102102

103-
if DJANGO_VERSION < (1, 6):
104-
raise DidNotEnable("Django 1.6 or newer is required.")
103+
if DJANGO_VERSION < (1, 8):
104+
raise DidNotEnable("Django 1.8 or newer is required.")
105105

106106
install_sql_hook()
107107
# Patch in our custom middleware.

tox.ini

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ envlist =
1414
# General format is {pythonversion}-{integrationname}-{frameworkversion}
1515
# 1 blank line between different integrations
1616
# Each framework version should only be mentioned once. I.e:
17-
# {py2.7,py3.7}-django-{1.11}
18-
# {py3.7}-django-{2.2}
17+
# {py3.7,py3.10}-django-{3.2}
18+
# {py3.10}-django-{4.0}
1919
# instead of:
20-
# {py2.7}-django-{1.11}
21-
# {py2.7,py3.7}-django-{1.11,2.2}
20+
# {py3.7}-django-{3.2}
21+
# {py3.7,py3.10}-django-{3.2,4.0}
2222

23-
{pypy,py2.7}-django-{1.6,1.7}
2423
{pypy,py2.7,py3.5}-django-{1.8,1.9,1.10}
2524
{pypy,py2.7}-django-{1.8,1.9,1.10,1.11}
2625
{py3.5,py3.6,py3.7}-django-{2.0,2.1}
@@ -100,13 +99,10 @@ deps =
10099
{py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: pytest-asyncio
101100
{py2.7,py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary
102101

103-
django-{1.6,1.7}: pytest-django<3.0
104102
django-{1.8,1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0
105103
django-{2.2,3.0,3.1,3.2}: pytest-django>=4.0
106104
django-{2.2,3.0,3.1,3.2}: Werkzeug<2.0
107105

108-
django-1.6: Django>=1.6,<1.7
109-
django-1.7: Django>=1.7,<1.8
110106
django-1.8: Django>=1.8,<1.9
111107
django-1.9: Django>=1.9,<1.10
112108
django-1.10: Django>=1.10,<1.11
@@ -306,8 +302,6 @@ basepython =
306302
pypy: pypy
307303

308304
commands =
309-
django-{1.6,1.7}: pip install pytest<4
310-
311305
; https://github.com/pytest-dev/pytest/issues/5532
312306
{py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.10,0.11,0.12}: pip install pytest<5
313307
{py3.6,py3.7,py3.8,py3.9}-flask-{0.11}: pip install Werkzeug<2

0 commit comments

Comments
 (0)