mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #23919 -- Removed misc Python 2/3 references.
This commit is contained in:
4
tests/cache/tests.py
vendored
4
tests/cache/tests.py
vendored
@@ -1912,10 +1912,6 @@ class CacheI18nTest(TestCase):
|
||||
get_cache_data = FetchFromCacheMiddleware().process_request(request)
|
||||
self.assertIsNone(get_cache_data)
|
||||
|
||||
# This test passes on Python < 3.3 even without the corresponding code
|
||||
# in UpdateCacheMiddleware, because pickling a StreamingHttpResponse
|
||||
# fails (http://bugs.python.org/issue14288). LocMemCache silently
|
||||
# swallows the exception and doesn't store the response in cache.
|
||||
content = ['Check for cache with streaming content.']
|
||||
response = StreamingHttpResponse(content)
|
||||
UpdateCacheMiddleware().process_response(request, response)
|
||||
|
||||
Reference in New Issue
Block a user