Skip to content

Commit fcb6e2b

Browse files
chelsea-lintswast
andauthored
Update tests/unit/test_json.py
Co-authored-by: Tim Sweña (Swast) <swast@google.com>
1 parent 6a6e92e commit fcb6e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_deterministic_json_serialization():
8686

8787
def test_to_numpy():
8888
data = db_dtypes.JSONArray._from_sequence(JSON_DATA.values())
89-
expected = np.asarray(data)
89+
expected = np.asarray([json.dumps(value) for value in JSON_DATA.values()])
9090

9191
result = data.to_numpy()
9292
pd._testing.assert_equal(result, expected)

0 commit comments

Comments
 (0)