@@ -256,7 +256,9 @@ def test_index_and_concat_datetime(self):
256
256
# regression test for #125
257
257
date_range = pd .date_range ("2011-09-01" , periods = 10 )
258
258
for dates in [date_range , date_range .values , date_range .to_pydatetime ()]:
259
- expected = self .cls ("t" , dates )
259
+ with warnings .catch_warnings ():
260
+ warnings .filterwarnings ("ignore" , message = "Converting non-nanosecond" )
261
+ expected = self .cls ("t" , dates )
260
262
for times in [
261
263
[expected [i ] for i in range (10 )],
262
264
[expected [i : (i + 1 )] for i in range (10 )],
@@ -2942,8 +2944,8 @@ def test_from_pint_wrapping_dask(self, Var):
2942
2944
(np .array ([np .datetime64 ("2000-01-01" , "ns" )]), False ),
2943
2945
(np .array ([np .datetime64 ("2000-01-01" , "s" )]), True ),
2944
2946
(pd .date_range ("2000" , periods = 1 ), False ),
2945
- (datetime (2000 , 1 , 1 ), False ),
2946
- (np .array ([datetime (2000 , 1 , 1 )]), False ),
2947
+ (datetime (2000 , 1 , 1 ), True ),
2948
+ (np .array ([datetime (2000 , 1 , 1 )]), True ),
2947
2949
(pd .date_range ("2000" , periods = 1 , tz = pytz .timezone ("America/New_York" )), False ),
2948
2950
(
2949
2951
pd .Series (
0 commit comments