From 1baeefc2fdc023ea5f0e6acf6d50afe0ba41483a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 10 Feb 2020 07:46:46 +0100 Subject: [PATCH] test_reprcompare_whitespaces: use callequal --- testing/test_assertion.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index cf80fba43..453bb2fc7 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -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'",