From 852fb6a4ae93c68bd03f36ca4daf7e9642d8e2d2 Mon Sep 17 00:00:00 2001 From: Tomer Keren Date: Thu, 9 May 2019 19:02:50 +0300 Subject: [PATCH] Change basic test case to be consistent with existing assertion rewriting The code ``` x = 0 assert x == 1 ``` will give the failure message 0 == 1, so it shouldn't be different as part of an unroll --- testing/test_assertrewrite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index c453fe57d..e819075b5 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -656,11 +656,11 @@ class TestAssertionRewrite(object): else: assert lines == ["assert 0 == 1\n + where 1 = \\n{ \\n~ \\n}.a"] - def test_all_unroll(self): + def test_unroll_expression(self): def f(): assert all(x == 1 for x in range(10)) - assert "0 != 1" in getmsg(f) + assert "0 == 1" in getmsg(f) def test_custom_repr_non_ascii(self): def f():