diff --git a/tests/test_connector.py b/tests/test_connector.py index 192494dad60..3bf01b08fe4 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