Skip to content

Commit 3b20806

Browse files
committed
comments
1 parent 288a9dd commit 3b20806

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/test_cached_property.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,7 @@ def prop(self) -> CachedPropertySentinel:
220220
refetch_refcount = sys.getrefcount(result)
221221
assert refetch_refcount == cleared_refcount # Original object refcount unchanged
222222

223-
# Now we should have 2 Sentinel instances (original + new one)
223+
# Now we should have 2 Sentinel instances:
224+
# - original in `result`
225+
# - new one in `result4`
224226
assert count_sentinels() == initial_sentinel_count + 2

tests/test_under_cached_property.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,7 @@ def prop(self) -> UnderCachedPropertySentinel:
246246
refetch_refcount = sys.getrefcount(result)
247247
assert refetch_refcount == cleared_refcount # Original object refcount unchanged
248248

249-
# Now we should have 2 Sentinel instances (original + new one)
249+
# Now we should have 2 Sentinel instances:
250+
# - original in `result`
251+
# - new one in `result4`
250252
assert count_sentinels() == initial_sentinel_count + 2

0 commit comments

Comments
 (0)