Created attachment 715779 [details] dev-python:diskcache-5.2.1:20210613-022722.log =dev-python/diskcache-5.2.1 fails two tests when I try to rebuild it for Python 3.9, DiskCacheTests.test_get_or_set_callable_returning_none and DiskCacheTests.test_pickle. Here's the section of the build log (full log attached) with the stack traces: ========================================================== FAILURES ========================================================== ___________________________________ DiskCacheTests.test_get_or_set_callable_returning_none ___________________________________ self = <tests.test_djangocache.DiskCacheTests testMethod=test_get_or_set_callable_returning_none> def test_get_or_set_callable_returning_none(self): self.assertIsNone(cache.get_or_set('mykey', lambda: None)) # Previous get_or_set() doesn't store None in the cache. > self.assertEqual(cache.get('mykey', 'default'), 'default') E AssertionError: None != 'default' self = <tests.test_djangocache.DiskCacheTests testMethod=test_get_or_set_callable_returning_none> tests/test_djangocache.py:884: AssertionError _________________________________________________ DiskCacheTests.test_pickle _________________________________________________ self = <tests.test_djangocache.DiskCacheTests testMethod=test_pickle> def test_pickle(self): letters = 'abcde' cache.clear() for num, val in enumerate(letters): cache.set(val, num) > data = pickle.dumps(cache) E TypeError: cannot pickle '_thread.RLock' object letters = 'abcde' num = 4 self = <tests.test_djangocache.DiskCacheTests testMethod=test_pickle> val = 'e' tests/test_djangocache.py:1036: TypeError
Created attachment 715782 [details] emerge-info.txt
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=221fc15c943883c49dde3ab712918cf345ec47e5 commit 221fc15c943883c49dde3ab712918cf345ec47e5 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-06-14 10:04:53 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-06-14 10:06:03 +0000 dev-python/diskcache: Require django<3.2 for tests Closes: https://bugs.gentoo.org/795792 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/diskcache/diskcache-5.2.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)