Skip to content

Commit 2ba977a

Browse files
committed
TST: revert some testing additions in #12874, xref #12886
1 parent f8703d0 commit 2ba977a

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

pandas/tseries/tests/test_resample.py

+2-23
Original file line numberDiff line numberDiff line change
@@ -1344,29 +1344,8 @@ def test_resample_empty(self):
13441344
# (ex: doing mean with dtype of np.object)
13451345
pass
13461346

1347-
def test_resample_empty_nunique(self):
1348-
1349-
# this routines should be folded into the above when
1350-
# GH12886 is closed
1351-
for index in tm.all_timeseries_index_generator(0):
1352-
for dtype in (np.float, np.int, np.object, 'datetime64[ns]'):
1353-
for how in ['nunique']:
1354-
1355-
empty_series = pd.Series([], index, dtype)
1356-
1357-
def f():
1358-
getattr(empty_series.resample('d'), how)()
1359-
1360-
if isinstance(index,
1361-
(pd.DatetimeIndex, pd.TimedeltaIndex)):
1362-
self.assertRaises(Exception, f)
1363-
else:
1364-
try:
1365-
f()
1366-
except DataError:
1367-
# Ignore these since some combinations are invalid
1368-
# (ex: doing mean with dtype of np.object)
1369-
pass
1347+
# this should also tests nunique (IOW, use resample_methods)
1348+
# when GH12886 is closed
13701349

13711350
def test_resample_dtype_preservation(self):
13721351

0 commit comments

Comments
 (0)