MCPcopy Index your code
hub / github.com/python/cpython / test_cache_clear

Method test_cache_clear

Lib/test/test_filecmp.py:72–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 "Mismatched file to shallow identical file compares as equal")
71
72 def test_cache_clear(self):
73 first_compare = filecmp.cmp(self.name, self.name_same, shallow=False)
74 second_compare = filecmp.cmp(self.name, self.name_diff, shallow=False)
75 filecmp.clear_cache()
76 self.assertTrue(len(filecmp._cache) == 0,
77 "Cache not cleared after calling clear_cache")
78
79class DirCompareTestCase(unittest.TestCase):
80 def setUp(self):

Callers

nothing calls this directly

Calls 2

assertTrueMethod · 0.80
clear_cacheMethod · 0.45

Tested by

no test coverage detected