Skip to content

Commit 2bbc831

Browse files
committed
handle 3.6/3.7 diffs
1 parent 76dbae4 commit 2bbc831

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/tests/api/test_api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,17 @@ class TestPDApi(Base):
9090
"UInt64Dtype",
9191
"NamedAgg",
9292
]
93-
if not compat.PY37:
94-
classes.extend(["Panel", "SparseSeries", "SparseDataFrame"])
95-
deprecated_modules.extend(["np", "datetime"])
9693

9794
# these are already deprecated; awaiting removal
9895
deprecated_classes: List[str] = []
9996

10097
# these should be deprecated in the future
101-
deprecated_classes_in_future: List[str] = ["SparseArray"]
98+
deprecated_classes_in_future: List[str] = []
99+
100+
if not compat.PY37:
101+
classes.extend(["Panel", "SparseSeries", "SparseDataFrame"])
102+
deprecated_modules.extend(["np", "datetime"])
103+
deprecated_classes_in_future.extend(["SparseArray"])
102104

103105
# external modules exposed in pandas namespace
104106
modules: List[str] = []

0 commit comments

Comments
 (0)