diff --git a/django/contrib/sessions/tests.py b/django/contrib/sessions/tests.py
index 92ea6bb..3de0978 100644
a
|
b
|
from django.contrib.sessions.backends.signed_cookies import SessionStore as Cook
|
13 | 13 | from django.contrib.sessions.models import Session |
14 | 14 | from django.contrib.sessions.middleware import SessionMiddleware |
15 | 15 | from django.core.exceptions import ImproperlyConfigured, SuspiciousOperation |
| 16 | from django.db import connection |
16 | 17 | from django.http import HttpResponse |
17 | 18 | from django.test import TestCase, RequestFactory |
18 | 19 | from django.test.utils import override_settings |
… |
… |
class DatabaseSessionTests(SessionTestsMixin, TestCase):
|
285 | 286 | del self.session._session_cache |
286 | 287 | self.assertEqual(self.session['y'], 2) |
287 | 288 | |
288 | | |
| 289 | @unittest.skipIf(not connection.features.supports_timezones, |
| 290 | "Database backend does not support timezones") |
289 | 291 | @override_settings(USE_TZ=True) |
290 | 292 | class DatabaseSessionWithTimeZoneTests(DatabaseSessionTests): |
291 | 293 | pass |
… |
… |
class CacheDBSessionTests(SessionTestsMixin, TestCase):
|
307 | 309 | self.assertEqual(self.session.load(), {}) |
308 | 310 | self.assertEqual(len(w), 1) |
309 | 311 | |
310 | | |
| 312 | @unittest.skipIf(not connection.features.supports_timezones, |
| 313 | "Database backend does not support timezones") |
311 | 314 | @override_settings(USE_TZ=True) |
312 | 315 | class CacheDBSessionWithTimeZoneTests(CacheDBSessionTests): |
313 | 316 | pass |