Projet

Général

Profil

Tâche #35800

Scénario #35784: EOLE 2.10 : Traquer les warnings python dans le code EOLE

DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version

Ajouté par Joël Cuissinat il y a 2 mois. Mis à jour il y a 22 jours.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
07/03/2024
Echéance:
% réalisé:

0%

Restant à faire (heures):

Description

00:04:55.110             tests/test_era.py:14
00:04:55.110               /usr/share/amon/tests/test_era.py:14: 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).
00:04:55.110                 datetime.utcfromtimestamp(ts)).total_seconds() / 3600
00:04:55.113               /usr/share/era/tests/test_compiler.py:114: 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).
00:04:55.113                 datetime.utcfromtimestamp(ts)).total_seconds() / 3600)

Formats disponibles : Atom PDF