From 080c24973661398e44f9a0a63fbdf7abc869a70e Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Sun, 16 Feb 2025 12:19:05 +0100 Subject: [PATCH] Fix skipped tests --- Lib/test/test_functools.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 1b7a76bec839bf..b66c9e860460f7 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -1490,6 +1490,16 @@ def fib(n): 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):