]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-130185: Fix unintentionally skipped tests in `test_functools` (#130186)
authorTomas R. <tomas.roun8@gmail.com>
Sun, 16 Feb 2025 13:34:54 +0000 (14:34 +0100)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2025 13:34:54 +0000 (16:34 +0300)
Lib/test/test_functools.py

index 1b7a76bec839bfabfed52415fc0220b343508103..b66c9e860460f7c447994cdd1a1680710310de1d 100644 (file)
@@ -1490,6 +1490,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):