Skip to content

Commit c5640ef

Browse files
authored
bpo-46380: Apply tests to both C and Python version (GH-30606)
1 parent 025cbe7 commit c5640ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_functools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ def test_lru_reentrancy_with_len(self):
14141414

14151415
def test_lru_star_arg_handling(self):
14161416
# Test regression that arose in ea064ff3c10f
1417-
@functools.lru_cache()
1417+
@self.module.lru_cache()
14181418
def f(*args):
14191419
return args
14201420

@@ -1426,11 +1426,11 @@ def test_lru_type_error(self):
14261426
# lru_cache was leaking when one of the arguments
14271427
# wasn't cacheable.
14281428

1429-
@functools.lru_cache(maxsize=None)
1429+
@self.module.lru_cache(maxsize=None)
14301430
def infinite_cache(o):
14311431
pass
14321432

1433-
@functools.lru_cache(maxsize=10)
1433+
@self.module.lru_cache(maxsize=10)
14341434
def limited_cache(o):
14351435
pass
14361436

0 commit comments

Comments
 (0)