Skip to content

Commit 90a74ef

Browse files
Manju080rhshadrach
andauthored
Update pandas/tests/libs/test_lib.py
Co-authored-by: Richard Shadrach <[email protected]>
1 parent 8a4a54d commit 90a74ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/tests/libs/test_lib.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,5 @@ def test_ensure_string_array_list_of_lists():
305305
result = lib.ensure_string_array(arr)
306306

307307
# Each item in result should still be a list, not a stringified version
308-
assert isinstance(result, np.ndarray)
309-
assert result.dtype == object
310-
assert result[0] == "['t', 'e', 's', 't']"
311-
assert result[1] == "['w', 'o', 'r', 'd']"
308+
expected = np.array(["['t', 'e', 's', 't']", "['w', 'o', 'r', 'd']"], dtype=object)
309+
tm.assert_numpy_array_equal(result, expected)

0 commit comments

Comments
 (0)