-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
python-poetry/poetry-core
#758Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
Description
We are running the poetry-core 1.9.0 test suite in nixpkgs and after upgrading Python to 3.12.6 we saw the following test failure:
_____________ test_invalid_requirement[name @ file:.-invalid URL] ______________
string = 'name @ file:.', exception = 'invalid URL'
@pytest.mark.parametrize(
["string", "exception"],
[
("foo!", "Unexpected character at column 4\n\nfoo!\n ^\n"),
("foo (>=bar)", 'invalid version constraint ">=bar"'),
("name @ file:.", "invalid URL"),
("name @ file:/.", "invalid URL"),
],
)
def test_invalid_requirement(string: str, exception: str) -> None:
> with pytest.raises(
InvalidRequirement,
match=re.escape(f"The requirement is invalid: {exception}"),
):
E Failed: DID NOT RAISE <class 'poetry.core.version.requirements.InvalidRequirement'>
tests/version/test_requirements.py:130: Failed
This is likely a result of python/cpython#85110.
Workarounds
n/a
Poetry Installation Method
system package manager (eg: dnf, apt etc.)
Operating System
NixOS unstable
Poetry Version
1.8.3
Poetry Configuration
n/aPython Sysconfig
n/aExample pyproject.toml
n/aPoetry Runtime Logs
n/aReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged