@@ -296,8 +296,11 @@ def test_timezones_fixed_format_frame_non_empty(setup_path):
296
296
tm .assert_frame_equal (result , df )
297
297
298
298
299
- @pytest .mark .parametrize ("dtype" , ["datetime64[ns, UTC]" , "datetime64[ns, US/Eastern]" ])
300
- def test_timezones_fixed_format_frame_empty (setup_path , dtype ):
299
+ def test_timezones_fixed_format_frame_empty (setup_path , tz_aware_fixture ):
300
+ # GH 20594
301
+
302
+ dtype = pd .DatetimeTZDtype (tz = tz_aware_fixture )
303
+
301
304
with ensure_clean_store (setup_path ) as store :
302
305
s = Series (dtype = dtype )
303
306
df = DataFrame ({"A" : s })
@@ -306,17 +309,23 @@ def test_timezones_fixed_format_frame_empty(setup_path, dtype):
306
309
tm .assert_frame_equal (result , df )
307
310
308
311
309
- @pytest .mark .parametrize ("dtype" , ["datetime64[ns, UTC]" , "datetime64[ns, US/Eastern]" ])
310
- def test_timezones_fixed_format_series_nonempty (setup_path , dtype ):
312
+ def test_timezones_fixed_format_series_nonempty (setup_path , tz_aware_fixture ):
313
+ # GH 20594
314
+
315
+ dtype = pd .DatetimeTZDtype (tz = tz_aware_fixture )
316
+
311
317
with ensure_clean_store (setup_path ) as store :
312
318
s = Series ([0 ], dtype = dtype )
313
319
store ["s" ] = s
314
320
result = store ["s" ]
315
321
tm .assert_series_equal (result , s )
316
322
317
323
318
- @pytest .mark .parametrize ("dtype" , ["datetime64[ns, UTC]" , "datetime64[ns, US/Eastern]" ])
319
- def test_timezones_fixed_format_series_empty (setup_path , dtype ):
324
+ def test_timezones_fixed_format_series_empty (setup_path , tz_aware_fixture ):
325
+ # GH 20594
326
+
327
+ dtype = pd .DatetimeTZDtype (tz = tz_aware_fixture )
328
+
320
329
with ensure_clean_store (setup_path ) as store :
321
330
s = Series (dtype = dtype )
322
331
store ["s" ] = s
0 commit comments