diff --git a/helpdesk/tests/helpers.py b/helpdesk/tests/helpers.py index efebe389..02147bb1 100644 --- a/helpdesk/tests/helpers.py +++ b/helpdesk/tests/helpers.py @@ -20,7 +20,9 @@ def get_staff_user(username='helpdesk.staff', password='password'): def reload_urlconf(urlconf=None): - from importlib import reload # python 3 needs this import. + from django.utils import six + if six.PY3: + from importlib import reload if urlconf is None: from django.conf import settings