Skip to content

Commit 7db8b1f

Browse files
committed
Fix tests
1 parent 65d31eb commit 7db8b1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/system/test_gbq.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ def test_should_properly_handle_timestamp_unix_epoch(self, project_id):
314314
{"unix_epoch": ["1970-01-01T00:00:00.000000Z"]},
315315
dtype="datetime64[ns]",
316316
)
317-
expected["unix_epoch"] = expected["unix_epoch"].dt.tz_localize("UTC")
317+
if expected["unix_epoch"].dt.tz is None:
318+
expected["unix_epoch"] = expected["unix_epoch"].dt.tz_localize("UTC")
318319
tm.assert_frame_equal(df, expected)
319320

320321
def test_should_properly_handle_arbitrary_timestamp(self, project_id):

0 commit comments

Comments
 (0)