File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ async def stop(self):
234
234
if await self ._is_browser_running ():
235
235
await self ._execute_command (BrowserCommands .CLOSE )
236
236
self ._browser_process_manager .stop_process ()
237
- await asyncio .sleep (1 ) # small delay to ensure browser is closed
237
+ await asyncio .sleep (1 ) # small delay to ensure browser is closed
238
238
self ._temp_directory_manager .cleanup ()
239
239
else :
240
240
raise exceptions .BrowserNotRunning ('Browser is not running' )
Original file line number Diff line number Diff line change 1
1
import os
2
- import shutil
3
2
import subprocess
4
3
from contextlib import suppress
5
4
from tempfile import TemporaryDirectory
@@ -213,7 +212,7 @@ def create_temp_dir(self):
213
212
Returns:
214
213
TemporaryDirectory: The created temporary directory instance.
215
214
"""
216
- temp_dir = self ._temp_dir_factory (delete = False ) # avoid auto-deletion
215
+ temp_dir = self ._temp_dir_factory (delete = False ) # avoid auto-deletion
217
216
self ._temp_dirs .append (temp_dir )
218
217
return temp_dir
219
218
You can’t perform that action at this time.
0 commit comments