mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #23919 -- Removed six.PY2/PY3 usage
Thanks Tim Graham for the review.
This commit is contained in:
parent
e63d98b7be
commit
c716fe8782
111 changed files with 305 additions and 1296 deletions
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue