From 98401832385b0fbe78b72b7e0362f8ed7b1ff0a6 Mon Sep 17 00:00:00 2001 From: Matthew Avaylon Date: Sun, 3 Mar 2024 16:07:41 -0800 Subject: [PATCH] Update test_gallery.py --- test_gallery.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_gallery.py b/test_gallery.py index a838d886..3f3cd5c9 100644 --- a/test_gallery.py +++ b/test_gallery.py @@ -74,8 +74,7 @@ def _import_from_file(script): ) _deprecation_warning_datetime = ( - "datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. " - "Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC)." + r"datetime.datetime.utcfromtimestamp() *" ) def run_gallery_tests():