From 4b78704180e1873ff57fa3c61a87593eddf8b185 Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Thu, 28 Dec 2017 09:22:57 -0500 Subject: [PATCH] Fix error on python 2 --- helpdesk/tests/helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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