Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed Oct 10, 2024
1 parent 639a2a4 commit 8a286b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion micropip/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def _add_requirement_from_package_index(self, req: Requirement):
add it to the package list and return True. Otherwise, return False.
"""
metadata = await package_index.query_package(
req.name, self.fetch_kwargs, index_urls=self.index_urls
req.name, self.index_urls, self.fetch_kwargs,
)

wheel = find_wheel(metadata, req)
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def add_pkg_version(
self.metadata_map[filename] = metadata
self.top_level_map[filename] = top_level

async def query_package(self, pkgname, kwargs, index_urls=None):
async def query_package(self, pkgname, index_urls, kwargs):
from micropip.package_index import ProjectInfo

try:
Expand Down

0 comments on commit 8a286b9

Please sign in to comment.