From fae3d05d969f256fccaae44c34bbcfd711090e2d Mon Sep 17 00:00:00 2001 From: David Foster Date: Wed, 10 Jan 2024 09:40:26 -0500 Subject: [PATCH] SQ -> Tests: Refactor eliminate explicit create of tempfile.TemporaryDirectory where OpenOrCreateDialog.create() can be used --- src/crystal/tests/util/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crystal/tests/util/windows.py b/src/crystal/tests/util/windows.py index 317e2f6c..1e7e22b4 100644 --- a/src/crystal/tests/util/windows.py +++ b/src/crystal/tests/util/windows.py @@ -70,7 +70,7 @@ async def create(self, if project_dirpath is None: with tempfile.TemporaryDirectory(suffix='.crystalproj') as project_dirpath: assert project_dirpath is not None - async with self.create(project_dirpath) as (mw, project_dirpath): + async with self.create(project_dirpath, autoclose=autoclose) as (mw, project_dirpath): yield (mw, project_dirpath) return