pep508: fix pyo3 related failing test

This test was failing on master. I guess we don't test
this crate with the pyo3 feature enabled? I think this
regression was due to a recent change in the error reporting
of the pep440 crate.
This commit is contained in:
Andrew Gallant 2024-05-08 20:08:56 -04:00 committed by Andrew Gallant
parent b6bb2ac548
commit 342cac8b18

View file

@ -1604,8 +1604,8 @@ mod test {
assert_eq!(
captured_logs[0].body,
"Expected PEP 440 version to compare with python_version, found '3.9.', \
evaluating to false: after parsing 3.9, found \".\" after it, \
which is not part of a valid version"
evaluating to false: after parsing '3.9', found '.', which is \
not part of a valid version"
);
assert_eq!(captured_logs[0].level, log::Level::Warn);
assert_eq!(captured_logs.len(), 1);