summaryrefslogtreecommitdiff
path: root/tests/project_template
diff options
context:
space:
mode:
Diffstat (limited to 'tests/project_template')
-rw-r--r--tests/project_template/test_settings.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/project_template/test_settings.py b/tests/project_template/test_settings.py
index 8998a844c7..ac115f7dc2 100644
--- a/tests/project_template/test_settings.py
+++ b/tests/project_template/test_settings.py
@@ -1,11 +1,11 @@
-import sys
import unittest
from django.test import TestCase
+from django.utils import six
-@unittest.skipIf(sys.version_info < (3, 3),
- 'Python < 3.3 cannot import the project template because '
+@unittest.skipIf(six.PY2,
+ 'Python 2 cannot import the project template because '
'django/conf/project_template doesn\'t have an __init__.py file.')
class TestStartProjectSettings(TestCase):