]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 16 Feb 2025 13:52:55 +0000 (14:52 +0100)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2025 13:52:55 +0000 (13:52 +0000)
gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186)
(cherry picked from commit 73d03005b028eb6e4d1a643f3ca7a1f5ff2040fc)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Lib/test/test_functools.py

index dadcd04394b390347571af479df9e73e1059d280..2a65b2cca5c78e31b4baa74586d6e003e0aea404 100644 (file)
@@ -1313,6 +1313,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):