Make assertion failure give better message (#8692)

This commit is contained in:
Nguyễn Gia Phong 2020-08-06 17:10:13 +07:00 committed by GitHub
parent f51bd8fed8
commit 709ad37b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -2,9 +2,8 @@ from tests.lib import create_test_package_with_setup
def assert_contains_expected_lines(string, expected_lines):
lines = string.splitlines()
for expected_line in expected_lines:
assert any(line.endswith(expected_line) for line in lines)
assert (expected_line + '\n') in string
def test_check_install_canonicalization(script):