From d6604eed74d830e9e42c7b8174ac4216b07acd60 Mon Sep 17 00:00:00 2001 From: DhruvBShetty Date: Sun, 22 Dec 2024 10:56:05 +0200 Subject: [PATCH] Added result and expected variables for both tests --- pandas/tests/indexing/test_loc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index efd5f59867a5f..7aeded5a6cb7f 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -3306,7 +3306,10 @@ def test_loc_setitem_matching_index(self): # Test matching indices s.loc[["a", "b"]] = s1 - tm.assert_series_equal(s[["a", "b"]], s1) + + result = s[["a", "b"]] + expected = s1 + tm.assert_series_equal(result, expected) # Test unmatched indices s.loc[["a", "b"]] = s2