From: Nikita Sobolev Date: Fri, 14 Jan 2022 21:13:45 +0000 (+0300) Subject: bpo-46380: Apply tests to both C and Python version (GH-30606) X-Git-Tag: v3.11.0a5~248^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5640ef87511c960e339af37b486678788be910a;p=thirdparty%2FPython%2Fcpython.git bpo-46380: Apply tests to both C and Python version (GH-30606) --- diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 70ae8e06bb47..d527e31f39ff 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -1414,7 +1414,7 @@ class TestLRU: def test_lru_star_arg_handling(self): # Test regression that arose in ea064ff3c10f - @functools.lru_cache() + @self.module.lru_cache() def f(*args): return args @@ -1426,11 +1426,11 @@ class TestLRU: # lru_cache was leaking when one of the arguments # wasn't cacheable. - @functools.lru_cache(maxsize=None) + @self.module.lru_cache(maxsize=None) def infinite_cache(o): pass - @functools.lru_cache(maxsize=10) + @self.module.lru_cache(maxsize=10) def limited_cache(o): pass