test_reprcompare_whitespaces: use callequal

This commit is contained in:
Daniel Hahler 2020-02-10 07:46:46 +01:00
parent 260f848c05
commit 1baeefc2fd
1 changed files with 1 additions and 3 deletions

View File

@ -1074,9 +1074,7 @@ def test_reprcompare_notin():
def test_reprcompare_whitespaces():
config = mock_config()
detail = plugin.pytest_assertrepr_compare(config, "==", "\r\n", "\n")
assert detail == [
assert callequal("\r\n", "\n") == [
r"'\r\n' == '\n'",
r"Strings contain only whitespace, escaping them using repr()",
r"- '\n'",