Commit 10fe6be3 authored by Benoit Pierre's avatar Benoit Pierre

tests: fix `test_distribution_version_missing` to work with pytest>=5.0

parent 6bdd9c5c
......@@ -242,7 +242,7 @@ def test_distribution_version_missing(tmpdir, suffix, expected_filename,
with pytest.raises(ValueError) as excinfo:
dist.version
err = str(excinfo)
err = str(excinfo.value)
# Include a string expression after the assert so the full strings
# will be visible for inspection on failure.
assert expected_text in err, str((expected_text, err))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment