[3.13] gh-130185: Fix unintentionally skipped tests in test_functools (GH-130186) (#130188)

gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186)
(cherry picked from commit 73d03005b0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-02-16 14:57:27 +01:00 committed by GitHub
parent 945dcb05ce
commit ff92f6b228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1339,6 +1339,16 @@ class TestCache:
self.module._CacheInfo(hits=0, misses=0, maxsize=None, currsize=0))
class TestCachePy(TestCache, unittest.TestCase):
module = py_functools
@unittest.skipUnless(c_functools, 'requires the C _functools module')
class TestCacheC(TestCache, unittest.TestCase):
if c_functools:
module = c_functools
class TestLRU:
def test_lru(self):