1515import pytest
1616
1717from marimo ._dependencies .dependencies import DependencyManager
18+ from marimo ._utils import async_path
1819from marimo ._utils .platform import is_windows
1920from tests ._server .templates .utils import normalize_index_html
2021from tests .mocks import snapshotter
@@ -323,7 +324,7 @@ async def test_export_watch(self, temp_marimo_file: str) -> None:
323324 assert f"Watching { temp_marimo_file } " in line
324325 break
325326
326- assert not path .exists (temp_out_file )
327+ assert not await async_path .exists (temp_out_file )
327328
328329 # Modify file
329330 with open (temp_marimo_file , "a" ) as f : # noqa: ASYNC230
@@ -653,7 +654,7 @@ async def test_export_watch_script(self, temp_marimo_file: str) -> None:
653654 assert f"Watching { temp_marimo_file } " in line
654655 break
655656
656- assert not path .exists (temp_out_file )
657+ assert not await async_path .exists (temp_out_file )
657658
658659 # Modify file
659660 with open (temp_marimo_file , "a" ) as f : # noqa: ASYNC230
@@ -668,7 +669,7 @@ async def test_export_watch_script(self, temp_marimo_file: str) -> None:
668669 break
669670
670671 await asyncio .sleep (0.1 )
671- assert path .exists (temp_out_file )
672+ assert await async_path .exists (temp_out_file )
672673
673674 @pytest .mark .skipif (
674675 condition = DependencyManager .watchdog .has (),
@@ -771,7 +772,7 @@ async def test_export_watch_markdown(self, temp_marimo_file: str) -> None:
771772 assert f"Watching { temp_marimo_file } " in line
772773 break
773774
774- assert not path .exists (temp_out_file )
775+ assert not await async_path .exists (temp_out_file )
775776
776777 # Modify file
777778 with open (temp_marimo_file , "a" ) as f : # noqa: ASYNC230
@@ -786,7 +787,7 @@ async def test_export_watch_markdown(self, temp_marimo_file: str) -> None:
786787 break
787788
788789 await asyncio .sleep (0.1 )
789- assert path .exists (temp_out_file )
790+ assert await async_path .exists (temp_out_file )
790791
791792 @pytest .mark .skipif (
792793 condition = DependencyManager .watchdog .has (),
0 commit comments