Skip to content

Commit f011acf

Browse files
committed
dispose of file outside of with block
1 parent c4205ff commit f011acf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte_cdk/test/standard_tests/models/scenario.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ def with_temp_config_file(self) -> Generator[Path, None, None]:
107107
temp_path.chmod(temp_path.stat().st_mode | 0o444)
108108
yield temp_path
109109

110-
# attempt cleanup, ignore errors
111-
with suppress(OSError):
112-
temp_path.unlink()
110+
# attempt cleanup, ignore errors
111+
with suppress(OSError):
112+
temp_path.unlink()

0 commit comments

Comments
 (0)