Skip to content

Commit

Permalink
tests: unix_sockname: use tmp_path
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jan 19, 2019
1 parent 94e7b49 commit acf90ad
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 acf90ad

Please sign in to comment.