diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2019-06-30 14:24:41 +0200 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2019-06-30 14:24:41 +0200 |
commit | 10fe6be3d61414bd6cd9ed723e961d7ea8f5fd61 (patch) | |
tree | 122619e82362536928dc5c5e8006f84fb1af67c3 /pkg_resources/tests/test_pkg_resources.py | |
parent | 6bdd9c5cbb202edd18287d66ef3d48db90b84447 (diff) | |
download | python-setuptools-git-10fe6be3d61414bd6cd9ed723e961d7ea8f5fd61.tar.gz |
tests: fix `test_distribution_version_missing` to work with pytest>=5.0
Diffstat (limited to 'pkg_resources/tests/test_pkg_resources.py')
-rw-r--r-- | pkg_resources/tests/test_pkg_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py index fb77c685..a0f2c452 100644 --- a/pkg_resources/tests/test_pkg_resources.py +++ b/pkg_resources/tests/test_pkg_resources.py @@ -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)) |