Skip to content

Commit 66ebfc9

Browse files
committed
fix implicit merge conflict with 24c4aec
1 parent 4005472 commit 66ebfc9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Lib/test/test_site.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,11 @@ def test_addsitedir_idempotent(self):
207207
pth_file = PthFile()
208208
pth_file.cleanup(prep=True)
209209

210-
try:
211-
pth_file.create()
210+
with pth_file.create():
212211
dirs = set()
213212
dirs = site.addsitedir(pth_file.base_dir, dirs)
214213
dirs = site.addsitedir(pth_file.base_dir, dirs)
215214
self.pth_file_tests(pth_file)
216-
finally:
217-
pth_file.cleanup()
218215

219216
def test_addsitedir_dotfile(self):
220217
pth_file = PthFile('.dotfile')

0 commit comments

Comments
 (0)