From 941b0a5b334e043b5fb5ea694d60da0128a8a3b8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 12 Oct 2017 11:08:05 -0400 Subject: Fixed #28708 -- Added constants to detect the Python version. --- tests/admin_scripts/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 096984032f..e56d43c4bc 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -26,10 +26,10 @@ from django.db.migrations.recorder import MigrationRecorder from django.test import ( LiveServerTestCase, SimpleTestCase, TestCase, override_settings, ) +from django.utils.version import PY36 custom_templates_dir = os.path.join(os.path.dirname(__file__), 'custom_templates') -PY36 = sys.version_info >= (3, 6) SYSTEM_CHECK_MSG = 'System check identified no issues' -- cgit v1.3