Skip to content

Commit 98e84a2

Browse files
committed
-
1 parent 8c1db90 commit 98e84a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test_python_toolbox/test_caching/test_cache.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,11 @@ def test_double_caching():
192192

193193

194194
def test_time_to_keep():
195+
counting_func.i = 0 # Resetting so we could refer to hard numbers
196+
# without worrying whether other tests made `i` higher.
195197
f = cache(time_to_keep={'days': 356})(counting_func)
196198

199+
print(f('zero'))
197200
assert f('zero') == 0 # Just to get rid of zero
198201

199202
assert f('a') == 1

0 commit comments

Comments
 (0)