diff --git a/_pytest/assertion/__init__.py b/_pytest/assertion/__init__.py index 4ead44fca..b7ec1924d 100644 --- a/_pytest/assertion/__init__.py +++ b/_pytest/assertion/__init__.py @@ -78,7 +78,7 @@ def pytest_runtest_setup(item): if new_expl: # Don't include pageloads of data unless we are very verbose (-vv) if len(''.join(new_expl[1:])) > 80*8 and item.config.option.verbose < 2: - new_expl[1:] = ['Detailed information too verbose, truncated'] + new_expl[1:] = ['Detailed information truncated, use "-vv" to see'] res = '\n~'.join(new_expl) if item.config.getvalue("assertmode") == "rewrite": # The result will be fed back a python % formatting diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 3ebc3cdcb..4572a96b1 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -164,7 +164,7 @@ def test_assert_compare_truncate_longmessage(testdir): result = testdir.runpytest() result.stdout.fnmatch_lines([ - "*too verbose, truncated*", + "*truncated*use*-vv*", ])