From acf90ad4e1d427fe0ae632bc68e7677cf976bce7 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 19 Jan 2019 22:01:08 +0100 Subject: [PATCH] tests: unix_sockname: use tmp_path Ref: https://github.com/aio-libs/aiohttp/issues/3551 --- tests/test_connector.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_connector.py b/tests/test_connector.py index 5a978860e42..9d90f7db4ba 100644 --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -43,9 +43,8 @@ def ssl_key(): @pytest.fixture -def unix_sockname(tmpdir): - sock_path = tmpdir / 'socket.sock' - return str(sock_path) +def unix_sockname(tmp_path): + return str(tmp_path / 'socket.sock') @pytest.fixture