Skip to content

Commit

Permalink
Use len to check cache emptiness in tests.test_cached_property
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Larralde committed Nov 23, 2018
1 parent fd5166d commit 86cb604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cached_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_garbage_collection(self):
# remove the only reference to the Check instance
del check
# make sure the cache of the deleted object was removed
self.assertEqual(Check.add_cached.cache, {})
self.assertEqual(len(Check.add_cached.cache), 0)

def test_object_independent(self):
Check = CheckFactory(self.cached_property_factory)
Expand Down

0 comments on commit 86cb604

Please sign in to comment.