Skip to content

Commit 3e6e54f

Browse files
Bolotnyjpicnixz
andauthored
Apply suggestion from @picnixz
Registered the cache cleanup via addCleanup to keep the test environment isolated. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 3c5f09f commit 3e6e54f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Lib/test/test_filecmp.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def test_cache_clear(self):
8282

8383
def test_cache_overflow_and_hit(self):
8484
filecmp.clear_cache()
85+
self.addCleanup(filecmp.clear_cache)
8586
s1 = filecmp._sig(os.stat(self.name))
8687
s2 = filecmp._sig(os.stat(self.name_same))
8788
base_dir = os.path.dirname(self.name)

0 commit comments

Comments
 (0)