Skip to content

Commit

Permalink
tests: unix_sockname: use tmp_path (#3555)
Browse files Browse the repository at this point in the history
Ref: #3551
  • Loading branch information
blueyed authored and asvetlov committed May 13, 2019
1 parent 6848ce3 commit 9c2c077
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c2c077

Please sign in to comment.