1111@pytest .mark .parametrize ("lock_type" , [AsyncFileLock , AsyncSoftFileLock ])
1212@pytest .mark .parametrize ("path_type" , [str , PurePath , Path ])
1313@pytest .mark .parametrize ("filename" , ["a" , "new/b" , "new2/new3/c" ])
14- @pytest .mark .asyncio ()
14+ @pytest .mark .asyncio
1515async def test_simple (
1616 lock_type : type [BaseAsyncFileLock ],
1717 path_type : type [str | Path ],
@@ -43,7 +43,7 @@ async def test_simple(
4343@pytest .mark .parametrize ("lock_type" , [AsyncFileLock , AsyncSoftFileLock ])
4444@pytest .mark .parametrize ("path_type" , [str , PurePath , Path ])
4545@pytest .mark .parametrize ("filename" , ["a" , "new/b" , "new2/new3/c" ])
46- @pytest .mark .asyncio ()
46+ @pytest .mark .asyncio
4747async def test_acquire (
4848 lock_type : type [BaseAsyncFileLock ],
4949 path_type : type [str | Path ],
@@ -73,7 +73,7 @@ async def test_acquire(
7373
7474
7575@pytest .mark .parametrize ("lock_type" , [AsyncFileLock , AsyncSoftFileLock ])
76- @pytest .mark .asyncio ()
76+ @pytest .mark .asyncio
7777async def test_non_blocking (lock_type : type [BaseAsyncFileLock ], tmp_path : Path ) -> None :
7878 # raises Timeout error when the lock cannot be acquired
7979 lock_path = tmp_path / "a"
@@ -147,7 +147,7 @@ async def test_non_blocking(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
147147
148148@pytest .mark .parametrize ("lock_type" , [AsyncFileLock , AsyncSoftFileLock ])
149149@pytest .mark .parametrize ("thread_local" , [True , False ])
150- @pytest .mark .asyncio ()
150+ @pytest .mark .asyncio
151151async def test_non_executor (lock_type : type [BaseAsyncFileLock ], thread_local : bool , tmp_path : Path ) -> None :
152152 lock_path = tmp_path / "a"
153153 lock = lock_type (str (lock_path ), thread_local = thread_local , run_in_executor = False )
@@ -157,7 +157,7 @@ async def test_non_executor(lock_type: type[BaseAsyncFileLock], thread_local: bo
157157 assert not lock .is_locked
158158
159159
160- @pytest .mark .asyncio ()
160+ @pytest .mark .asyncio
161161async def test_coroutine_function (tmp_path : Path ) -> None :
162162 acquired = released = False
163163
0 commit comments