Bug 291303

Summary: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version
Product: WebKit Reporter: Fujii Hironori <fujii>
Component: Tools / TestsAssignee: Fujii Hironori <fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=291348
Attachments:
Description Flags
error_log.txt none

Fujii Hironori
Reported 2025-04-08 18:11:43 PDT
Created attachment 474877 [details] error_log.txt I'm running layout tests with Python 3.13. Lot of DeprecationWarning are reported in error_log.txt: [Wed Apr 09 09:42:28.533371 2025] [cgi:error] [pid 37356:tid 1120] [client 127.0.0.1:7996] AH01215: C:\\webkit\\wb\\LayoutTests\\http\\tests\\cache\\resources\\cacheable-iframe.py:7: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\r: C:/webkit/wb/LayoutTests/http/tests/cache/resources/cacheable-iframe.py, referer: http://127.0.0.1:8000/cache/cached-main-resource.html [Wed Apr 09 09:42:35.332134 2025] [cgi:error] [pid 37356:tid 176] [client 127.0.0.1:8188] AH01215: C:\\webkit\\wb\\LayoutTests\\http\\tests\\resources\\network-simulator.py:87: DeprecationWarning: 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: C:/webkit/wb/LayoutTests/http/tests/resources/network-simulator.py, referer: http://127.0.0.1:8000/harness/slow-loading-html-iframe.html
Attachments
error_log.txt (119.15 KB, text/plain)
2025-04-08 18:11 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2025-04-08 20:34:39 PDT
EWS
Comment 2 2025-04-09 12:49:37 PDT
Committed 293480@main (f32092ad8f90): <https://commits.webkit.org/293480@main> Reviewed commits have been landed. Closing PR #43832 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-04-09 12:50:14 PDT
Note You need to log in before you can comment on or make changes to this bug.