Skip to content

Commit

Permalink
test: replacing tmpdir with tmp_path in tests_pytorch/conftest.py (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhirwa committed Mar 16, 2024
1 parent 51692c9 commit 178e198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_pytorch/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def caplog(caplog):


@pytest.fixture()
def tmpdir_server(tmpdir):
Handler = partial(SimpleHTTPRequestHandler, directory=str(tmpdir))
def tmpdir_server(tmp_path):
Handler = partial(SimpleHTTPRequestHandler, directory=str(tmp_path))
from http.server import ThreadingHTTPServer

with ThreadingHTTPServer(("localhost", 0), Handler) as server:
Expand Down

0 comments on commit 178e198

Please sign in to comment.