]> granicus.if.org Git - python/commit
bpo-33752: Fix a file leak in test_dbm. (GH-7376)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Jun 2018 13:50:56 +0000 (06:50 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Jun 2018 13:50:56 +0000 (06:50 -0700)
commitffd72acc508bbc994812cefbfb9532d3be2ab737
tree1f18d7586b07b10cd0070933a7c1e96d6596b71e
parent631fe1fa423c42197d533103dcf349ca19baed0c
bpo-33752: Fix a file leak in test_dbm. (GH-7376)

With addCleanup() f.close() was executed after tearDown().
(cherry picked from commit 6592d7fe11477f8f974d2d4a85c3382a1ad05217)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_dbm.py