From d170c63351944fd91b2206d10f89e7ff75b53b76 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 21 Jan 2017 20:02:00 -0500 Subject: Refs #23919 -- Removed misc references to Python 2. --- tests/cache/tests.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tests/cache') diff --git a/tests/cache/tests.py b/tests/cache/tests.py index 5c3ec0fe04..ef77b28458 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -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')) -- cgit v1.3