mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Removed misc references to Python 2.
This commit is contained in:
9
tests/cache/tests.py
vendored
9
tests/cache/tests.py
vendored
@@ -62,11 +62,6 @@ class Unpicklable:
|
||||
raise pickle.PickleError()
|
||||
|
||||
|
||||
class UnpicklableType:
|
||||
# Unpicklable using the default pickling protocol on Python 2.
|
||||
__slots__ = 'a',
|
||||
|
||||
|
||||
@override_settings(CACHES={
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
|
||||
@@ -1360,10 +1355,6 @@ class FileBasedCacheTests(BaseCacheTests, TestCase):
|
||||
cache.set('foo', 'bar')
|
||||
os.path.exists(self.dirname)
|
||||
|
||||
def test_cache_write_unpicklable_type(self):
|
||||
# This fails if not using the highest pickling protocol on Python 2.
|
||||
cache.set('unpicklable', UnpicklableType())
|
||||
|
||||
def test_get_ignores_enoent(self):
|
||||
cache.set('foo', 'bar')
|
||||
os.unlink(cache._key_to_file('foo'))
|
||||
|
||||
Reference in New Issue
Block a user