Skip to content

Commit 692a7a5

Browse files
committed
Undo a file
1 parent 297046c commit 692a7a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/io/json/test_json_table_schema.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class TestBuildSchema:
28-
def setup_method(self):
28+
def setup_method(self, method):
2929
self.df = DataFrame(
3030
{
3131
"A": [1, 2, 3, 4],
@@ -195,7 +195,7 @@ def test_as_json_table_type_categorical_dtypes(self):
195195

196196

197197
class TestTableOrient:
198-
def setup_method(self):
198+
def setup_method(self, method):
199199
self.df = DataFrame(
200200
{
201201
"A": [1, 2, 3, 4],
@@ -687,7 +687,7 @@ class TestTableOrientReader:
687687
},
688688
],
689689
)
690-
def test_read_json_table_orient(self, index_nm, vals):
690+
def test_read_json_table_orient(self, index_nm, vals, recwarn):
691691
df = DataFrame(vals, index=pd.Index(range(4), name=index_nm))
692692
out = df.to_json(orient="table")
693693
result = pd.read_json(out, orient="table")
@@ -698,7 +698,7 @@ def test_read_json_table_orient(self, index_nm, vals):
698698
"vals",
699699
[{"timedeltas": pd.timedelta_range("1H", periods=4, freq="T")}],
700700
)
701-
def test_read_json_table_orient_raises(self, index_nm, vals):
701+
def test_read_json_table_orient_raises(self, index_nm, vals, recwarn):
702702
df = DataFrame(vals, index=pd.Index(range(4), name=index_nm))
703703
out = df.to_json(orient="table")
704704
with pytest.raises(NotImplementedError, match="can not yet read "):
@@ -736,7 +736,7 @@ def test_read_json_table_orient_raises(self, index_nm, vals):
736736
},
737737
],
738738
)
739-
def test_read_json_table_timezones_orient(self, idx, vals):
739+
def test_read_json_table_timezones_orient(self, idx, vals, recwarn):
740740
# GH 35973
741741
df = DataFrame(vals, index=idx)
742742
out = df.to_json(orient="table")

0 commit comments

Comments
 (0)