Skip to content

Commit 4f09a85

Browse files
[3.12] gh-130185: Fix unintentionally skipped tests in test_functools (GH-130186) (#130189)
gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186) (cherry picked from commit 73d0300) Co-authored-by: Tomas R <[email protected]>
1 parent 5e44d39 commit 4f09a85

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Lib/test/test_functools.py

+10
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,16 @@ def fib(n):
13131313
self.module._CacheInfo(hits=0, misses=0, maxsize=None, currsize=0))
13141314

13151315

1316+
class TestCachePy(TestCache, unittest.TestCase):
1317+
module = py_functools
1318+
1319+
1320+
@unittest.skipUnless(c_functools, 'requires the C _functools module')
1321+
class TestCacheC(TestCache, unittest.TestCase):
1322+
if c_functools:
1323+
module = c_functools
1324+
1325+
13161326
class TestLRU:
13171327

13181328
def test_lru(self):

0 commit comments

Comments
 (0)