path: pass `path` to `peer` in remotefilelog's tests
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 02 Dec 2022 06:49:39 +0100
changeset 49736 a804242050c4
parent 49735 8c6f783917e7
child 49737 4cedae992ed1
path: pass `path` to `peer` in remotefilelog's tests We directly use the `path` object to build the `peer` object.
tests/remotefilelog-getflogheads.py
--- a/tests/remotefilelog-getflogheads.py	Fri Dec 02 06:48:17 2022 +0100
+++ b/tests/remotefilelog-getflogheads.py	Fri Dec 02 06:49:39 2022 +0100
@@ -19,7 +19,7 @@
     Used for testing purpose
     """
 
-    dest = urlutil.get_unique_pull_path(b'getflogheads', repo, ui)[0]
+    dest = urlutil.get_unique_pull_path_obj(b'getflogheads', ui)
     peer = hg.peer(repo, {}, dest)
 
     try: