Drop Guardian for 1.11 tests, since we're installing an incompatible version

This commit is contained in:
Tom Christie 2019-11-18 14:06:19 +00:00
parent c0fdf84f1d
commit 3d17b03565

View File

@ -67,6 +67,9 @@ def pytest_configure(config):
) )
# guardian is optional # guardian is optional
# Note that for the test cases we're installing a version of django-gaurdian
# that's only compatible with Django 2.0+.
if django.VERSION >= (2, 0, 0):
try: try:
import guardian # NOQA import guardian # NOQA
except ImportError: except ImportError: