From: Tomas R. Date: Sun, 16 Feb 2025 13:34:54 +0000 (+0100) Subject: gh-130185: Fix unintentionally skipped tests in `test_functools` (#130186) X-Git-Tag: v3.14.0a6~402 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73d03005b028eb6e4d1a643f3ca7a1f5ff2040fc;p=thirdparty%2FPython%2Fcpython.git gh-130185: Fix unintentionally skipped tests in `test_functools` (#130186) --- diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 1b7a76bec839..b66c9e860460 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -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):