From 12cc427865e9a052bc23a85c3e958770eccb5eef Mon Sep 17 00:00:00 2001 From: Xavier Fernandez Date: Fri, 4 Dec 2015 22:36:52 +0100 Subject: [PATCH] Fix test_sort_locations_file_not_find_link test _sort_locations expects a list --- tests/unit/test_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_index.py b/tests/unit/test_index.py index 9d3bb67d2..8c173067b 100644 --- a/tests/unit/test_index.py +++ b/tests/unit/test_index.py @@ -23,7 +23,7 @@ def test_sort_locations_file_not_find_link(data): run """ finder = PackageFinder([], [], session=PipSession()) - files, urls = finder._sort_locations(data.index_url("empty_with_pkg")) + files, urls = finder._sort_locations([data.index_url("empty_with_pkg")]) assert urls and not files, "urls, but not files should have been found"