summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg_resources/tests/test_pkg_resources.py2
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))