mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Refs #23919 -- Removed misc references to Python 2.
This commit is contained in:
parent
c22212220a
commit
d170c63351
34 changed files with 40 additions and 167 deletions
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'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue