mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Removed six.PY2/PY3 usage
Thanks Tim Graham for the review.
This commit is contained in:
6
tests/cache/tests.py
vendored
6
tests/cache/tests.py
vendored
@@ -928,11 +928,7 @@ class BaseCacheTests(object):
|
||||
self.assertEqual(cache.get_or_set('mykey', my_callable()), 'value')
|
||||
|
||||
def test_get_or_set_version(self):
|
||||
msg = (
|
||||
"get_or_set() missing 1 required positional argument: 'default'"
|
||||
if six.PY3
|
||||
else 'get_or_set() takes at least 3 arguments'
|
||||
)
|
||||
msg = "get_or_set() missing 1 required positional argument: 'default'"
|
||||
cache.get_or_set('brian', 1979, version=2)
|
||||
with self.assertRaisesMessage(TypeError, msg):
|
||||
cache.get_or_set('brian')
|
||||
|
||||
Reference in New Issue
Block a user