File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -553,14 +553,15 @@ async def test_access_compressed_file_as_symlink(
553
553
554
554
555
555
async def test_access_special_resource (
556
- tmp_path_factory : pytest . TempPathFactory , aiohttp_client : AiohttpClient
556
+ unix_sockname : str , aiohttp_client : AiohttpClient
557
557
) -> None :
558
558
"""Test access to non-regular files is forbidden using a UNIX domain socket."""
559
559
if not getattr (socket , "AF_UNIX" , None ):
560
560
pytest .skip ("UNIX domain sockets not supported" )
561
561
562
- tmp_path = tmp_path_factory .mktemp ("special" )
563
- my_special = tmp_path / "sock"
562
+ my_special = pathlib .Path (unix_sockname )
563
+ tmp_path = my_special .parent
564
+
564
565
my_socket = socket .socket (socket .AF_UNIX )
565
566
my_socket .bind (str (my_special ))
566
567
assert my_special .is_socket ()
You can’t perform that action at this time.
0 commit comments