Skip to content

Commit

Permalink
Fix test_test_command_install_requirements with pip 20.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
Chih-Hsuan Yen authored and jaraco committed Dec 12, 2020
1 parent d97cb2b commit 1603dcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.d/2478.misc.2.rst
@@ -0,0 +1,2 @@
Fix tests with pip 20.3+
-- by :user:`yan12125`
4 changes: 3 additions & 1 deletion setuptools/tests/test_virtualenv.py
Expand Up @@ -2,6 +2,8 @@
import os
import sys

import pathlib

import pytest
from pytest import yield_fixture
from pytest_fixture_config import yield_requires_config
Expand Down Expand Up @@ -124,7 +126,7 @@ def sdist(distname, version):
make_nspkg_sdist(str(dist_path), distname, version)
return dist_path
dependency_links = [
str(dist_path)
pathlib.Path(str(dist_path)).as_uri()
for dist_path in (
sdist('foobar', '2.4'),
sdist('bits', '4.2'),
Expand Down

0 comments on commit 1603dcb

Please sign in to comment.