From 5f4bf61b7b2cbf7673e6c26c2c32477bc92ebcd2 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Wed, 2 Aug 2023 23:38:51 -0500 Subject: [PATCH] Fix an ordering confusion in test_array_dot_repr --- test/test_pytato.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_pytato.py b/test/test_pytato.py index 4ace4f3..98393b9 100644 --- a/test/test_pytato.py +++ b/test/test_pytato.py @@ -451,8 +451,8 @@ def test_array_dot_repr(): y = pt.make_placeholder("y", (10, 4), np.int64) def _assert_stripped_repr(ary: pt.Array, expected_repr: str): - expected_str = "".join([c for c in repr(ary) if c not in [" ", "\n"]]) - result_str = "".join([c for c in expected_repr if c not in [" ", "\n"]]) + expected_str = "".join([c for c in expected_repr if c not in [" ", "\n"]]) + result_str = "".join([c for c in repr(ary)if c not in [" ", "\n"]]) assert expected_str == result_str _assert_stripped_repr( -- GitLab