You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/vagrant/scapy/scapy/layers/http.py", line 437, in self_build
val = datetime.datetime.utcnow().strftime(
^^^^^^^^^^^^^^^^^^^^^^^^^^
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled forremovalin a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Brief description
The "Test chunked with gzip" test fails with
Scapy version
836e4d5
Python version
Python 3.12.4
Operating system
Linux version 6.9.7-200.fc40.x86_64
Additional environment information
No response
How to reproduce
Actual result
###(011)=[failed] Test chunked with gzip
Expected result
The test should pass. I fixed the http test locally with
but there are other places where
utcnow
andutcfromtimestamp
are usedThey should probably be replaced too but I haven't gotten round to it yet.
Related resources
utcnow
andutcfromtimestamp
were deprecated in python/cpython#103857The text was updated successfully, but these errors were encountered: