[Python-checkins] bpo-46380: Apply tests to both C and Python version (GH-30606)
rhettinger
webhook-mailer at python.org
Fri Jan 14 16:13:54 EST 2022
https://github.com/python/cpython/commit/c5640ef87511c960e339af37b486678788be910a
commit: c5640ef87511c960e339af37b486678788be910a
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2022-01-14T13:13:45-08:00
summary:
bpo-46380: Apply tests to both C and Python version (GH-30606)
files:
M Lib/test/test_functools.py
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index 70ae8e06bb475..d527e31f39ffe 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -1414,7 +1414,7 @@ def test_lru_reentrancy_with_len(self):
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 @@ def test_lru_type_error(self):
# 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
More information about the Python-checkins
mailing list