Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maint: Do not pass literal json to read_json in test #3221

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/utils/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import pytest
import warnings
import io
import json
import warnings

import numpy as np
import pandas as pd
import pytest

from altair.utils import infer_vegalite_type, sanitize_dataframe

Expand Down Expand Up @@ -68,7 +69,7 @@ def test_sanitize_dataframe():
print(s)

# Re-construct pandas dataframe
df2 = pd.read_json(s)
df2 = pd.read_json(io.StringIO(s))

# Re-order the columns to match df
df2 = df2[df.columns]
Expand Down