summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorPrzemysław Suliga <suligap@gmail.com>2016-04-04 21:20:55 +0200
committerSimon Charette <charettes@users.noreply.github.com>2016-04-04 15:20:55 -0400
commitd356bb653f4d90ae9809e5a051791ded39010c38 (patch)
tree3b83546c20ecb0d02dade4591bd0e9fc2bfe631e /tests/cache
parent15a20dc9aff1bd8a055ee7c322631b3ca4d1c474 (diff)
Fixed #26460 -- Issued a single warning for invalid cache key
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index 4a3d4bb128..ee27d71563 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -586,7 +586,7 @@ class BaseCacheTests(object):
warnings.simplefilter("always")
# memcached does not allow whitespace or control characters in keys
cache.set('key with spaces', 'value')
- self.assertEqual(len(w), 2)
+ self.assertEqual(len(w), 1)
self.assertIsInstance(w[0].message, CacheKeyWarning)
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")