mirror of https://github.com/django/django.git
Merge remote-tracking branch 'django/master' into t3011
This commit is contained in:
commit
f2ec915b20
|
@ -304,6 +304,7 @@ class CacheDBSessionTests(SessionTestsMixin, TestCase):
|
|||
def test_load_overlong_key(self):
|
||||
# Some backends might issue a warning
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore")
|
||||
self.session._session_key = (string.ascii_letters + string.digits) * 20
|
||||
self.assertEqual(self.session.load(), {})
|
||||
|
||||
|
@ -353,6 +354,7 @@ class CacheSessionTests(SessionTestsMixin, unittest.TestCase):
|
|||
def test_load_overlong_key(self):
|
||||
# Some backends might issue a warning
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore")
|
||||
self.session._session_key = (string.ascii_letters + string.digits) * 20
|
||||
self.assertEqual(self.session.load(), {})
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from django.conf.urls.defaults import *
|
||||
from django.conf.urls import patterns, include
|
||||
|
||||
urlpatterns = patterns('',
|
||||
(r'^', include('django.contrib.comments.urls')),
|
||||
|
|
Loading…
Reference in New Issue