Mark local install as xfail

This commit is contained in:
Tzu-ping Chung 2020-04-27 14:36:21 +08:00
parent d8aede42d1
commit 06d9ea0952
2 changed files with 9 additions and 1 deletions

View File

@ -405,6 +405,8 @@ class ExtrasCandidate(Candidate):
]
# Add a dependency on the exact base.
# (See note 2b in the class docstring)
# FIXME: This does not work if the base candidate is specified by
# link, e.g. "pip install .[dev]" will fail.
spec = "{}=={}".format(self.base.name, self.base.version)
deps.append(factory.make_requirement_from_spec(spec, self.base._ireq))
return deps

View File

@ -573,7 +573,13 @@ class TestExtraMerge(object):
@pytest.mark.parametrize(
"pkg_builder",
[_local_with_setup, _direct_wheel, _wheel_from_index],
[
pytest.param(
_local_with_setup, marks=pytest.mark.xfail(strict=True),
),
_direct_wheel,
_wheel_from_index,
],
)
def test_new_resolver_extra_merge_in_package(
self, monkeypatch, script, pkg_builder,