Permission error

failed on teardown with "PermissionError: [WinError 32] Процесс не может получить доступ к файлу, так как этот файл занят другим процессом: 'R:\\Temp\\qa\\fbqa\\test_1822\\tmp_4337_sweep.log'"

LOG DETAILS:

2026-07-18 05:50:49.561
2026-07-18 05:50:49.561 act = <firebird.qa.plugin.Action object at [hex]>
2026-07-18 05:50:49.561 sweep_log = WindowsPath('R:/Temp/qa/fbqa/test_1822/tmp_4337_sweep.log')
2026-07-18 05:50:49.561 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-18 05:50:49.561
2026-07-18 05:50:49.561     @pytest.mark.trace
2026-07-18 05:50:49.561     @pytest.mark.version('>=3.0')
2026-07-18 05:50:49.561     def test_1(act: Action, sweep_log: Path, capsys):
2026-07-18 05:50:49.561
2026-07-18 05:50:49.561         with act.connect_server() as srv:
2026-07-18 05:50:49.561             # REDUCE number of cache buffers in DB header in order to sweep make its work as long as possible
2026-07-18 05:50:49.561             # Attempt to set too low value will fail with

[...SKIPPED...]

sor() as cur1
2026-07-18 05:50:49.561
2026-07-18 05:50:49.561                 #assert sweep_attach_id is None, f'attacment_id of SWEEP process is {sweep_attach_id}'
2026-07-18 05:50:49.561 >               assert sweep_attach_id, 'attacment_id of SWEEP process was not found.'
2026-07-18 05:50:49.561 E               AssertionError: attacment_id of SWEEP process was not found.
2026-07-18 05:50:49.561 E               assert None
2026-07-18 05:50:49.561
2026-07-18 05:50:49.561 tests\bugs\core_4337_test.py:234: AssertionError
2026-07-18 05:50:49.561 ---------------------------- Captured stdout setup ----------------------------
2026-07-18 05:50:49.561 Creating db: localhost:R:\Temp\qa\fbqa\test_1822\test.fdb [page_size=16384, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-18 05:50:49.561 ---------------------------- Captured stdout call -----------------------------
2026-07-18 05:50:49.561 TIMEOUT EXPIRATION: waiting for SWEEP process took 3937 ms which exceeds limit = 3000 ms.