File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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."""
You can’t perform that action at this time.
0 commit comments