Skip to content

Commit 67eb915

Browse files
Fix black formatting in test_cache_manager.py
1 parent 2c1e501 commit 67eb915

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_cache_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def test_evicts_oldest_not_smallest(self):
102102
bin_b = Path(tmpdir) / "binB.json"
103103
bin_c = Path(tmpdir) / "binC.json"
104104

105-
cm.add_entry(bin_a, small) # oldest
106-
cm.add_entry(bin_b, large) # newer
105+
cm.add_entry(bin_a, small) # oldest
106+
cm.add_entry(bin_b, large) # newer
107107

108108
# Adding bin_c must evict bin_a (oldest), NOT bin_a (smallest).
109109
# Under the old smallest-first policy, bin_a would also have been
@@ -112,8 +112,8 @@ def test_evicts_oldest_not_smallest(self):
112112
cm.add_entry(bin_c, small)
113113

114114
assert bin_a not in cm.in_memory_cache # evicted (oldest)
115-
assert bin_b in cm.in_memory_cache # kept (newer)
116-
assert bin_c in cm.in_memory_cache # just added
115+
assert bin_b in cm.in_memory_cache # kept (newer)
116+
assert bin_c in cm.in_memory_cache # just added
117117

118118
def test_touch_prevents_eviction(self):
119119
"""Accessing a bin via touch() moves it to the back of the LRU queue."""

0 commit comments

Comments
 (0)